:root {
    --bg-dark: #0e1013;
    --bg-card: #13161f;
    --gold-primary: #d4af37;
    --gold-hover: #f3e5ab;
    --text-light: #f5f5f7;
    --text-muted: #a0a5b5;
    --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%, #14223d 0%, transparent 70%);
    z-index: -1; pointer-events: none;
    animation: respiraFondo 10s ease-in-out infinite alternate;
    will-change: opacity;}

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

header {position: fixed; width: 100%; top: 0;
    z-index: 1000; background-color: rgba(10, 12, 16, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    display: flex; flex-direction: column;
    align-items: center; padding: 1.2rem 20px;}
.logo {font-size: 1.8rem; font-weight: bold;
    letter-spacing: 4px; text-transform: uppercase; 
    margin-bottom: 0.8rem; background: linear-gradient(120deg, 
        var(--gold-primary) 0%, 
        var(--gold-primary) 42%, #cddb4ed0 50%, 
        var(--gold-primary) 58%, 
        var(--gold-primary) 100%);
    background-size: 300% auto; -webkit-background-clip: text;
    background-clip: text;-webkit-text-fill-color: transparent;
    animation: shine-bounce 20s ease-in-out infinite;}
@keyframes shine-bounce {
    0% {background-position: 250% center;}
    35% {background-position: -150% center;}
    45% {background-position: -150% center;}
    80% {background-position: 250% center;}
    100% {background-position: 250% center;}}

nav {display: flex; justify-content: center;
    flex-wrap: nowrap; max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    padding-top: 0.1rem; margin-top: 0.1rem;}
nav a {display: inline-block; margin: 0 2rem;
    color: var(--text-light); text-decoration: none;
    font-size: 0.8rem; letter-spacing: 1px;
    text-transform: uppercase; position: relative;
    padding: 0.1rem 0; transition: color 0.3s ease;
    white-space: nowrap;}
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, #contacto, #ubicacion { scroll-margin-top: 50px; }

.hero {
    min-height: 100vh; display: flex;
    flex-direction: column; justify-content: center;
    align-items: center; text-align: center;
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(10, 12, 16, 0.85), rgba(10, 12, 16, 0.85)), url('fondoabo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed; padding: 4rem 2rem;
    padding-top: calc(4rem + 70px);
    position: relative; overflow: hidden;}
.hero::before {content: ""; position: absolute; top: 0;
    left: 0; width: 100%; height: 100%; z-index: 1;
    background-image: linear-gradient(rgba(10, 12, 16, 0.85), rgba(10, 12, 16, 0.85)), url('fondoabo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    animation: respiraHero 12s ease-in-out infinite alternate;
    pointer-events: none; will-change: transform;}
.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);
    position: relative;z-index: 2;}
.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; position: relative;z-index: 2;}
.hero .btn-gold {opacity: 0; transform: translateY(30px);
    animation: fadeInUp 1s ease forwards, glowPulse 3s ease-in-out infinite;
    animation-delay: 0.6s;}

.btn-gold {position: relative;z-index: 2;
    padding: 1.1rem 2.8rem; color: #0a0c10;
    background-color: var(--gold-primary);
    text-decoration: none; font-weight: bold;
    letter-spacing: 2px; text-transform: uppercase;
    font-size: 0.85rem; border-radius: 3px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    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, 175, 55, 0.4);
    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 fadeInUp {to {opacity: 1; transform: translateY(0);}}

@keyframes respiraHero {0% {transform: scale(1);}
    100% {
        transform: scale(1.20); /* Zoom sutil del 20% */}}

@keyframes glowPulse {0%, 100% {
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
        border-color: var(--gold-primary);
        background-color: var(--gold-primary);}
50% {box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4), 0 0 30px rgba(212, 175, 55, 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, 175, 55, 0.4);
    box-shadow: 0 15px 35px rgba(10, 12, 16, 0.6), 0 0 25px rgba(212, 175, 55, 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 {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(18, 22, 31, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.15);
    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(10, 12, 16, 0.88), rgba(10, 12, 16, 0.88)), url('fondoabo.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, 175, 55, 0.6);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 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; }

.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, 175, 55, 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, 175, 55, 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: #06070a;
    border-top: 1px solid rgba(212, 175, 55, 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, 175, 55, 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, 175, 55, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);}
.info-item p {color: var(--text-muted);
    font-size: 1rem; line-height: 1.6;}

.map-container {border: 1px solid rgba(212, 175, 55, 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) {
    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: 1px solid rgba(212, 175, 55, 0.25);
        padding-top: 0.5rem; margin-top: 0.1rem;
        gap: 1rem; flex-wrap: wrap;}
    nav a {margin: 0.5rem 1rem;; font-size: 0.7rem;}
    
    #inicio, #sobre-mi, #servicios, #contacto, #ubicacion {
        scroll-margin-top: 80px;}

    body {padding-top: 170px;}
    .hero {margin-top: -60px; padding-top: calc(4rem + 60px);
        background-attachment: scroll !important;}
    .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, 175, 55, 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;}}

@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, #contacto, #ubicacion {
        scroll-margin-top: 100px;}
    
    body {padding-top: 80px;}
    .hero {margin-top: -80px;
        padding-top: calc(4rem + 80px);}}