:root {
    --bg-dark: #252d20;
    --bg-card: #323d2e;
    --bg-card-hover: #3e4d3d;
    --gold-primary: #76e060;
    --gold-hover: #bde8b0;
    --gold-light: #f5e6d3;
    --text-light: #f5f0eb;
    --text-muted: #c4b8a8;
    --text-dark: #2d2520;
    --font-main: 'Inter', sans-serif;
    --font-headers: 'Playfair Display', serif;}

* { margin: 0; padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: var(--font-main);}

h1, h2, h3, h4, .logo, header h1, header h2, .card h3, .contact-card h3 {
    font-family: var(--font-headers) !important;
    font-weight: 600; letter-spacing: 0.5px;}

body {background-color: var(--bg-dark);
    color: var(--text-light); overflow-x: hidden;
    line-height: 1.6;
    padding-top: 70px; position: relative;}

body::before {content: ''; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 35%, #4d433d 0%, transparent 70%);
    z-index: -1; pointer-events: none;
    animation: respiraFondo 10s ease-in-out infinite alternate;
    will-change: opacity;}

body::after {content: ''; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 35%, rgba(212, 184, 150, 0.1) 0%, transparent 70%);
    z-index: -1; pointer-events: none;}

@keyframes respiraFondo {0% { opacity: 0.3; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1.05); }}

header {position: fixed; width: 100%; top: 0; z-index: 1000;
    background-color: rgba(26, 46, 26, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 184, 150, 0.2);
    display: flex; flex-direction: column; align-items: center;
    padding: 1.2rem 20px;}

.logo {font-size: 1.8rem; font-weight: bold;
    color: var(--gold-primary); letter-spacing: 4px;
    text-transform: uppercase; margin-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(212, 184, 150, 0.3);
    position: relative; display: inline-block;}
.logo::after {content: ''; position: absolute;
    left: 0; bottom: 2px; width: 100%;
    height: 0.1px; background-color: var(--gold-primary);
    transform: scaleX(0); transform-origin: center;
    animation: expand-line 25s ease-in-out infinite;}
@keyframes expand-line {0% {transform: scaleX(0);}
    15% {transform: scaleX(1);}
    50% {transform: scaleX(1);}
    65% {transform: scaleX(0);}
    100% {transform: scaleX(0);}}

nav {display: flex; justify-content: center; flex-wrap: wrap;
    max-width: 100%; margin: 0 auto;
    border-top: 1px solid rgba(212, 184, 150, 0.25);
    padding-top: 0.1rem; margin-top: 0.1rem;}

nav a {display: inline-block; margin: 0 0.5rem;
    color: var(--text-light); text-decoration: none;
    font-size: 0.85rem; letter-spacing: 1px;
    text-transform: uppercase; position: relative;
    padding: 0.3rem 0.8rem; transition: all 0.3s ease;
    white-space: nowrap; border-radius: 4px;}

nav a:hover {background-color: rgba(212, 184, 150, 0.15);
    color: var(--gold-primary);}
nav a:hover { color: var(--gold-primary); }
nav a.active {color: var(--gold-primary);}
nav a.active::after {width: 100%; left: 0;}

nav a::after {content: ''; position: absolute; bottom: 0;
    left: 50%; width: 0; height: 1.5px;
    background-color: var(--gold-primary);
    transition: width 0.35s ease, left 0.35s ease;}

nav a:hover::after { width: 100%; left: 0; }

section { padding: 6rem 8%; }

#inicio, #sobre-mi, #servicios, #galeria, #contacto, #ubicacion { scroll-margin-top: 50px; }

.hero {position: relative; overflow: hidden; min-height: 100vh; 
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center;
    background-color: var(--bg-dark); padding: 4rem 2rem; 
    margin-top: -70px; padding-top: calc(4rem + 70px);}
.hero::before {content: ""; position: absolute; top: 0;
    left: 0; width: 100%; height: 100%; z-index: 1; 
    background-image: linear-gradient(rgba(45, 37, 32, 0.85), rgba(45, 37, 32, 0.85)), url('fondocab.jpg');
    background-repeat: no-repeat;
    background-position: center center; background-size: cover;
    animation: respiraCabello 12s ease-in-out infinite alternate;
    pointer-events: none; will-change: transform;}
.hero h1, .hero p, .hero .btn-gold {position: relative; z-index: 2;}
.hero h1 {opacity: 0; transform: translateY(30px);
    animation: fadeInUp 1s ease forwards; animation-delay: 0.2s;
    font-size: 3.5rem; margin-bottom: 1.5rem;
    letter-spacing: 3px; text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);}
.hero p {opacity: 0; transform: translateY(30px);
    animation: fadeInUp 1s ease forwards; animation-delay: 0.4s;
    font-size: 1.2rem; color: var(--text-muted);
    max-width: 600px; margin-bottom: 3rem;}
.hero .btn-gold {opacity: 0; transform: translateY(30px);
    animation: fadeInUp 1s ease forwards, glowPulse 3s ease-in-out infinite;
    animation-delay: 0.6s;}

@keyframes respiraCabello {0% {transform: scale(1);}
    100% {transform: scale(1.15);}}

@keyframes fadeInUp {to {opacity: 1; transform: translateY(0);}}

.btn-gold {position: relative; display: inline-block;
    padding: 1.1rem 2.8rem; color: var(--text-dark);
    background-color: var(--gold-primary);
    text-decoration: none; font-weight: bold;
    letter-spacing: 2px; text-transform: uppercase;
    font-size: 0.85rem; border-radius: 50px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    box-shadow: 0 4px 15px rgba(212, 184, 150, 0.3);
    border: 2px solid var(--gold-primary);
    cursor: pointer; z-index: 10;
    animation: glowPulse 2s ease-in-out infinite;}
.btn-gold:hover {transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 184, 150, 0.5);
    background-color: var(--gold-hover);}
.btn-gold::after {content: ''; position: absolute;
    top: -50%; left: -60%; width: 30%; height: 200%;
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(30deg);}
.btn-gold:hover::after,
.btn-gold:focus::after {left: 130%; transition: all 0.6s ease-in-out;}

@keyframes glowPulse {0%, 100% {
        box-shadow: 0 4px 15px rgba(212, 184, 150, 0.3);
        border-color: var(--gold-primary);
        background-color: var(--gold-primary);}
    50% {
        box-shadow: 0 4px 18px rgba(212, 184, 150, 0.4), 0 0 30px rgba(212, 184, 150, 0.25);
        border-color: var(--gold-hover);background-color: var(--gold-hover);}}

.about {display: flex; gap: 4rem; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 6rem 8%;}

.about-img {flex: 1; min-width: 300px; max-width: 380px;
    position: relative; border: 1px solid rgba(212, 184, 150, 0.4);
    box-shadow: 0 15px 35px rgba(10, 12, 16, 0.6), 0 0 25px rgba(212, 184, 150, 0.1);
    border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 4;}

.about-img img {width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform 0.5s ease;}

.about-img:hover img { transform: scale(1.04); }
.about-content { flex: 1.5; }
.about-content h2 {font-size: 2.5rem; color: var(--gold-primary);
    margin-bottom: 1.5rem; text-transform: uppercase;
    letter-spacing: 2px;}
.about-content p {color: var(--text-muted);
    margin-bottom: 1.5rem; font-size: 1.05rem;}

.services h2, .contact h2, .gallery h2 {text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--gold-primary); margin-bottom: 1rem;
    text-transform: uppercase; letter-spacing: 2px;}
.services-grid {display: grid;
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    gap: 2rem; margin-top: 3rem;}

.contact h2 { margin-bottom: 0.5rem; }
.contact-subtitle {text-align: center; color: var(--text-muted);
    margin-bottom: 4rem; font-size: 1.1rem;}

.card {position: relative; overflow: hidden;
    background-color: rgba(45, 74, 45, 0.6);
    border: 1px solid rgba(212, 184, 150, 0.25);
    border-radius: 6px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1; will-change: transform;}
.card::before {content: ''; position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(45, 37, 32, 0.9), rgba(45, 37, 32, 0.9)), url('tarjetacab.jpg') no-repeat center center;
    background-size: cover; opacity: 0.25;
    filter: grayscale(100%); transition: opacity 0.3s ease;
    z-index: -1;}
.card:hover {transform: translateY(-8px) scale(1.05);
    border-color: rgba(212, 184, 150, 0.6);
    box-shadow: 0 10px 30px rgba(212, 184, 150, 0.15);}
.card:hover::before { opacity: 0.6; }
.card h3 {color: var(--gold-primary); margin-bottom: 1.2rem;
    font-size: 1.4rem; letter-spacing: 1px;}
.card p { color: var(--text-muted); font-size: 0.95rem; }

.gallery {padding: 6rem 8%; background-color: var(--bg-dark);
    background-color: transparent;}
.gallery-subtitle {text-align: center; color: var(--text-muted);
    margin-bottom: 4rem; font-size: 1.1rem;}
.gallery-grid {display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; max-width: 1200px; margin: 0 auto;}
.gallery-item {position: relative; aspect-ratio: 4/3;
    overflow: hidden; border-radius: 8px;
    border: 1px solid rgba(212, 184, 150, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;}
.gallery-item:hover {transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 184, 150, 0.2);}
.gallery-item img {width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.5s ease;}
.gallery-item:hover img {transform: scale(1.1);}
.gallery-caption {position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(26, 46, 26, 0.9));
    color: var(--text-light); padding: 1.5rem 1rem 1rem;
    font-size: 1rem; font-weight: 500; opacity: 0;
    transition: opacity 0.3s ease;}
.gallery-item:hover .gallery-caption {opacity: 1;}

.contact-grid {display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;}

.contact-card {position: relative;
    background-color: var(--bg-card); padding: 2.5rem 2rem;
    text-align: center; border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    text-decoration: none; color: var(--text-light);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden; z-index: 1; will-change: transform;}
.contact-card::before {content: ''; position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0; transition: opacity 0.3s ease; z-index: -1;}

.whatsapp-card::before {
    background: radial-gradient(circle at center, rgba(37, 211, 102, 0.15) 0%, transparent 70%);}
.instagram-card::before {
    background: radial-gradient(circle at center, rgba(225, 48, 108, 0.15) 0%, transparent 70%);}
.email-card::before {
    background: radial-gradient(circle at center, rgba(212, 184, 150, 0.15) 0%, transparent 70%);}
.contact-card:hover {transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);}
.contact-card:hover::before {opacity: 1;}
.whatsapp-card:hover {border-color: #25d366; 
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.15);}
.instagram-card:hover {border-color: #e1306c; 
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.15);}
.email-card:hover {border-color: var(--gold-primary); 
    box-shadow: 0 10px 30px rgba(212, 184, 150, 0.15);}
.contact-icon { display: block; margin-bottom: 1rem; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; letter-spacing: 1px; }
.contact-card p { color: var(--text-muted); font-size: 0.9rem; }
.contact-icon svg {fill: var(--gold-primary);
    transition: fill 0.3s ease, transform 0.3s ease;
    will-change: transform;}
.whatsapp-card:hover .contact-icon svg { fill: #25d366; transform: scale(1.1); }
.instagram-card:hover .contact-icon svg { fill: #e1306c; transform: scale(1.1); }
.email-card:hover .contact-icon svg { fill: var(--gold-hover); transform: scale(1.1); }

footer {background-color: rgba(26, 46, 26, 0.678);
    border-top: 1px solid rgba(212, 184, 150, 0.1);
    padding: 4rem 8% 2rem 8%;}
.footer-grid {display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem; margin-bottom: 3rem;}
.footer-col h4 {color: var(--gold-primary);
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 1.5rem;}
.footer-col p, .footer-col ul { color: var(--text-muted);
    font-size: 0.9rem; list-style: none;}
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a {color: var(--text-muted); 
    text-decoration: none; display: inline-block; 
    background-image: linear-gradient(var(--gold-primary), var(--gold-primary)); 
    background-position: 0% 100%; background-repeat: no-repeat;
    background-size: 0% 2px; 
    transition: background-size 0.3s ease, color 0.3s ease;}
.footer-col ul li a:hover {color: var(--gold-primary); 
    background-size: 100% 2px;}
.footer-bottom {text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem; color: var(--text-muted);
    font-size: 0.85rem;}

.whatsapp-float {position: fixed; bottom: 40px; right: 40px;
    background-color: #25d366; width: 60px; height: 60px;
    border-radius: 50%; z-index: 9999; display: flex;
    align-items: center; justify-content: center;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    animation: latidoSutil 3.5s infinite ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);}
.whatsapp-float:hover {transform: scale(2) translateY(-15px);
    background-color: #1aa85a;
    box-shadow: 0 25px 60px rgba(37, 211, 102, 1);}
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

@keyframes latidoSutil {0%, 100% {transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);}
    50% {transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.15);}}
@keyframes pulseHover {0%, 70%, 100% {transform: scale(1);}
    85% {transform: scale(1.4);}}
.reveal {opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);}
.reveal.active { opacity: 1; transform: translateY(0); }

.location {padding: 6rem 8%;}
.location h2 {text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--gold-primary); margin-bottom: 1rem;
    text-transform: uppercase; letter-spacing: 2px;}
.location-subtitle {text-align: center; color: var(--text-muted);
    font-size: 1.1rem; margin-bottom: 3rem; max-width: 600px;
    margin-left: auto; margin-right: auto;}
.location-container {display: grid; grid-template-columns: 1fr 1.5fr;
    gap: 3rem; max-width: 1200px; margin: 0 auto;}
.location-info {background-color: var(--bg-card);
    border: 1px solid rgba(212, 184, 150, 0.2);
    border-radius: 8px; padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);}
.location-info h3 {font-size: 1.8rem; color: var(--gold-primary);
    margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 1px;}

.info-item {display: flex; align-items: flex-start;
    margin-bottom: 1.5rem; gap: 1rem;}
.info-icon {font-size: 1.5rem; min-width: 40px; height: 40px;
    display: flex; align-items: center;
    justify-content: center;
    background-color: rgba(212, 184, 150, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(212, 184, 150, 0.3);}
.info-item p {color: var(--text-muted); font-size: 1rem;
    line-height: 1.6;}

.map-container {border: 1px solid rgba(212, 184, 150, 0.3);
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: 400px;}
.map-container iframe {display: block; width: 100%;
    height: 100%; min-height: 400px;}

a[href^="tel"] {color: inherit; text-decoration: none;}    

@media (max-width: 768px){
.hero h1 { font-size: 2.3rem; }
.whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; }
.whatsapp-float svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.5rem; }
.card p { font-size: 1.1rem; color: #c4c8d5; }
.about-content h2 { font-size: 2.1rem; }
.about-content p { font-size: 1.15rem; color: #c4c8d5; line-height: 1.7; }
.about { flex-direction: column; gap: 2.5rem; }
.about-img { max-width: 320px; margin: 0 auto; aspect-ratio: 1.1 / 1; }
.card:active, 
.contact-card:active {transform: scale(0.98);border-color: rgba(212, 184, 150, 0.6);transition: transform 0.1s ease;}

    .contact-card {padding: 1.5rem 1.2rem;}
    .contact-card h3 {font-size: 1.1rem;
    margin-bottom: 0.4rem;}
    .contact-card p {font-size: 0.85rem;}
    .contact-icon {margin-bottom: 0.8rem;}
    .contact-icon svg {width: 32px; height: 32px;}
    .location-container {grid-template-columns: 1fr; gap: 2rem;}
    .location-info {padding: 2rem;}
    .location-info h3 {font-size: 1.5rem; margin-bottom: 1.5rem;}
    .info-item {margin-bottom: 1.2rem;}
    .info-item p {font-size: 0.95rem;}
    .map-container {min-height: 300px;}
    .map-container iframe {min-height: 300px;}

    header {padding: 0.8rem 15px;}
    .logo {font-size: 1.4rem;
    margin-bottom: 0.5rem; letter-spacing: 2px;}
    nav {flex-wrap: wrap;
        justify-content: center;
        border-top: 5px solid rgba(212, 184, 150, 0.25);
        padding-top: 0.1rem;
        margin-top: 0.1rem;
       gap: 1rem; flex-wrap: wrap;}
    nav a {margin: 0.1rem 0.1rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.2rem;}
    nav a:nth-child(1), nav a:nth-child(2),
    nav a:nth-child(3) {margin-bottom: 0.1rem;}
    
    #inicio, #sobre-mi, #servicios, #galeria, #contacto, #ubicacion {
        scroll-margin-top: 80px;}
    
    body {padding-top: 60px;}
    .hero { background-attachment: scroll !important; 
        margin-top: -60px; padding-top: calc(4rem + 60px);}}

@media (max-width: 480px) {.logo {
        font-size: 1.2rem; letter-spacing: 1px;}
        nav a {margin: 0 0.5rem; font-size: 0.65rem;}
    
    #inicio, #sobre-mi, #servicios, #galeria, #contacto, #ubicacion {
        scroll-margin-top: 100px;}
    
    body {padding-top: 80px;}
    .hero {margin-top: -80px; padding-top: calc(4rem + 80px);}}