/* ==========================================================================
   VANITY CLÍNICA DE BELLEZA - HOJA DE ESTILOS PRINCIPAL
   Colores: Oro Metálico & Violeta Oscuro Lujoso
   ========================================================================== */

/* Variables CSS */
:root {
    --primary-bg: #0f071b;      /* Violeta muy oscuro */
    --secondary-bg: #1d0f30;    /* Violeta medio */
    --accent-purple: #7b2cbf;   /* Violeta acento */
    --accent-light: #9d4edd;    /* Violeta claro para brillos */
    --gold-primary: #d4af37;    /* Oro metálico clásico */
    --gold-light: #f3e5ab;      /* Oro suave / crema */
    --gold-dark: #aa8410;       /* Oro oscuro para degradados */
    --text-white: #ffffff;
    --text-muted: #bdaec6;      /* Texto violeta grisáceo */
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;
    
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --glass-bg: rgba(29, 15, 48, 0.6);
    --glass-border: 1px solid rgba(214, 175, 55, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Reset de Estilos */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Componentes Comunes */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--primary-bg);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
}

.btn-outline {
    background-color: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.btn-outline:hover {
    background-color: var(--gold-primary);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.8rem;
}

/* Cabecera & Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: rgba(15, 7, 27, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(214, 175, 55, 0.05);
}

.header.scrolled {
    padding: 12px 0;
    background-color: rgba(15, 7, 27, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(214, 175, 55, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-vanity {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold-primary);
    background: linear-gradient(to right, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--text-white);
    text-transform: uppercase;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 5px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--gold-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(29, 15, 48, 0.8) 0%, rgba(15, 7, 27, 1) 90%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(123, 44, 191, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-white) 60%, var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 600px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 50px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-backdrop);
    margin-bottom: 35px;
}

.badge-icon {
    color: var(--gold-primary);
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.hero-badge span {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-image-border {
    position: absolute;
    top: -15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    z-index: 1;
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    filter: brightness(0.95);
    transition: var(--transition);
}

.hero-image-wrapper:hover .hero-img {
    transform: translate(-10px, 10px);
}

/* Secciones Genéricas */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-primary);
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.title-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
    margin: 0 auto 20px auto;
}

.title-divider.left {
    margin: 0 0 20px 0;
    background: linear-gradient(to right, var(--gold-primary), transparent);
}

.section-desc {
    color: var(--text-muted);
}

/* Servicios Section */
.services {
    background-color: var(--secondary-bg);
    border-top: 1px solid rgba(214, 175, 55, 0.05);
    border-bottom: 1px solid rgba(214, 175, 55, 0.05);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.1);
    border-color: rgba(214, 175, 55, 0.4);
}

.service-icon-wrapper {
    color: var(--gold-primary);
    background-color: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--gold-primary);
    color: var(--primary-bg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.service-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--gold-light);
}

.service-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features {
    width: 100%;
    border-top: 1px solid rgba(214, 175, 55, 0.1);
    padding-top: 15px;
}

.service-features li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li::before {
    content: '✦';
    color: var(--gold-primary);
    font-size: 0.7rem;
}

/* Acerca de (Nosotros) */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, var(--primary-bg));
    z-index: 2;
}

.about-img {
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 1px solid rgba(214, 175, 55, 0.1);
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature-item {
    display: flex;
    gap: 15px;
}

.feature-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    margin-top: 8px;
    box-shadow: 0 0 10px var(--gold-primary);
}

.about-feature-item h4 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 5px;
}

.about-feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contacto y Mapa */
.contact {
    background-color: var(--secondary-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--gold-light);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    color: var(--gold-primary);
    background-color: rgba(212, 175, 55, 0.08);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.info-text h4 {
    font-family: var(--font-body);
    color: var(--text-white);
    margin-bottom: 5px;
    font-size: 1rem;
}

.info-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-map-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--glass-shadow);
    height: 100%;
    min-height: 380px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    background-color: #120921;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(212, 175, 55, 0.1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.8;
}

.map-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: rgba(29, 15, 48, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    max-width: 80%;
}

.map-pin-icon {
    color: var(--gold-primary);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    animation: bounce 2s infinite;
}

.map-overlay h3 {
    font-family: var(--font-heading);
    color: var(--text-white);
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.map-overlay p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Footer */
.footer {
    background-color: #0b0513;
    padding: 80px 0 20px 0;
    border-top: 1px solid rgba(214, 175, 55, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
    max-width: 320px;
}

.footer-links h3, .footer-social h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.03);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(214, 175, 55, 0.05);
}

.social-icons a:hover {
    color: var(--primary-bg);
    background-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive / Adaptabilidad a Dispositivos Móviles */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .hero-img {
        height: 380px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary-bg);
        z-index: 999;
        transition: 0.4s ease;
        padding: 40px;
        border-top: 1px solid rgba(214, 175, 55, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-cta {
        display: none; /* Se oculta para dar espacio en móvil */
    }
    
    /* Toggle animation */
    .mobile-nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
