@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Neuton:ital,wght@0,200;0,300;0,400;0,700;0,800;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.cdnfonts.com/css/glacial-indifference-2');
@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap');

/* Variables */
:root {
    --font-dancing: 'Dancing Script', cursive;
    --font-neuton: 'Neuton', serif;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-glacial: 'Glacial Indifference', sans-serif;
    --font-tenor: 'Tenor Sans', sans-serif;
    --color-cream: #fffae0;
    --color-dark: #020017;
    --brand-gold: #fffae0;
}

*, *::before, *::after { 
    box-sizing: border-box; 
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--color-cream);
    color: var(--color-dark);
    -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fffae0; }
::-webkit-scrollbar-thumb { background: #020017; border-radius: 4px; }
.font-dancing { font-family: var(--font-dancing); }
.font-neuton { font-family: var(--font-neuton); }
.font-montserrat { font-family: var(--font-montserrat); }
.font-glacial { font-family: var(--font-glacial); }
.font-tenor { font-family: var(--font-tenor); }

.fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.hover-card-effect { transition: all 0.4s ease; }
.hover-card-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(2, 0, 23, 0.5);
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #020017;
    color: #fffae0;
    padding: 0 15px;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    gap: 15px; 
}

.main-header .logo {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fffae0;
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: normal;
    line-height: 1.2;
    max-width: 80%;
    display: block;
}

.menu-toggle {
    background: none;
    border: none;
    color: #fffae0;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    max-width: 80%;
    background-color: #020017;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2500;
    padding-top: 80px;
    box-shadow: 2px 0 15px rgba(0,0,0,0.5);
    overflow-y: auto;
}

.main-nav.show { 
    transform: translateX(0); 
}

.main-nav.show::before {
    content: '';
    position: fixed;
    top: 0;
    left: 280px;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: -1;
    pointer-events: none;
}

.main-nav ul {
    list-style: none;
    padding: 0 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-nav a {
    display: block;
    text-decoration: none;
    color: #fffae0;
    font-family: "Tenor Sans", sans-serif;
    font-size: 1.1rem;
    padding: 12px;
    border-radius: 6px;
    border-bottom: 1px solid rgba(255,250,224, 0.1);
}

.main-nav a:hover { background: rgba(255,255,255,0.1); }
.cta-link { background: var(--brand-gold); color: #020017 !important; font-weight: bold; text-align: center; border: none !important; }

img { max-width: 100%; height: auto; display: block; }
section { width: 100%; overflow: hidden; }

@media (max-width: 639px) {
    h1.font-montserrat {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
        word-wrap: break-word;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    section.py-20 h2 { font-size: 1.5rem !important; }
}

.main-footer {
    background-color: #020017;
    color: #fffae0;
    font-family: "Tenor Sans", sans-serif;
    padding: 50px 20px 30px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 100%;
    margin: 0 auto;
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--brand-gold);
    font-family: "Glacial Indifference", sans-serif;
}

.footer-section p {
    margin: 12px 0;
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
}
.footer-section a { color: #fffae0; text-decoration: none; }

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 10px;
    color: #fffae0ff;
    background: transparent;
    border-radius: 6px;
    transition: background 180ms ease, color 180ms ease, transform 120ms ease;
    text-decoration: none;
}
.social-links a svg {
    width: 25px;
    height: 25px;
    display: block;
}

.social-links a:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

.social-links a .icono-social-solido {
    fill: currentColor;
}

.social-links a .icono-instagram {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-links a .icono-instagram__flash {
    fill: currentColor;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.8;
}

.btn-flotante {
    position: fixed;
    right: 15px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 2900;
    color: white;
}
.btn-flotante svg { width: 30px; height: 30px; fill: currentColor; }


@media (min-width: 768px) {
    
    .main-header { padding: 0 40px; height: 80px; }
    .main-header .logo { 
        font-size: 1.4rem; 
        white-space: nowrap; 
        max-width: none; 
    }
    .menu-toggle { display: none; }

    .main-nav {
        position: static;
        height: auto;
        width: auto;
        max-width: none;
        background: transparent;
        transform: none;
        padding: 0;
        box-shadow: none;
        display: flex;
        overflow: visible;
    }

    .main-nav ul { flex-direction: row; gap: 30px; align-items: center; }
    .main-nav a { padding: 8px 16px; border-bottom: none; }
    .main-nav a:hover { background: rgba(255,255,255,0.1); }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        max-width: 1200px;
    }
    
    .footer-section { flex: 1; margin-bottom: 0; }
    .footer-section.social-media { align-items: center; display: flex; flex-direction: column; }
    .footer-section p { text-align: left; }
    
    h1.font-montserrat { font-size: 4.5rem !important; }
}

@media (min-width: 1024px) {
    h1.font-montserrat { font-size: 5.5rem !important; }
}

/* --- Bloque responsivo unificado --- */
/* Ajustes coherentes para móviles / tablets / escritorio */
/* Móvil (teléfonos pequeños) */
@media (max-width: 639px) {
    .main-header { height: 60px; padding: 0 12px; }
    .main-header .logo { font-size: 1rem; }
    .menu-toggle { width: 40px; height: 40px; }
    .main-nav { width: 85vw; }

    /* Hero/encabezados */
    .session1 h1, h1.font-montserrat { font-size: clamp(1.8rem, 6.5vw, 2.6rem) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .session1 h2 { font-size: clamp(1rem, 4.5vw, 1.2rem); }

    /* Tarjetas y contenedores */
    .Recuadro3 { flex-direction: column; gap: 18px; padding: 0 12px; }
    .servicecard { max-width: 100%; width: 100%; }

    /* Footer */
    .footer-content { gap: 24px; padding: 20px; }
    .footer-section { min-width: 100%; }

    /* Star / logo */
    .star-container { width: 220px; height: 220px; }

    .btn-flotante { width: 48px; height: 48px; right: 12px; bottom: 12px; }
}

/* Tablet */
@media (min-width: 640px) and (max-width: 1023px) {
    .main-header { height: 70px; padding: 0 20px; }
    .main-header .logo { font-size: 1.2rem; }

    .session1 h1, h1.font-montserrat { font-size: clamp(2.4rem, 5vw, 3.6rem) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .session1 h2 { font-size: 1.2rem; }

    .Recuadro3 { flex-direction: row; flex-wrap: wrap; gap: 24px; }
    .servicecard { max-width: 48%; }

    .star-container { width: 280px; height: 280px; }
}

/* Escritorio */
@media (min-width: 1024px) {
    .main-header { height: 80px; padding: 0 40px; }
    .main-header .logo { font-size: 1.4rem; }
    .session1 h1, h1.font-montserrat { white-space: normal; }
    .Recuadro3 { gap: 40px; }
    .servicecard { max-width: 350px; }
}
