/* ==========================================================================
   VARIABLES DE TEMA (MODO OSCURO - BASE)
   ========================================================================== */
:root {
    /* Fondos */
    --color-fondo-1: #1B202B;    
    --color-fondo-2: #242A38;    
    --color-fondo-3: #151820;    
    --color-acento: #E5B53D;     
    
    /* Textos */
    --text-dorado: #E5B53D;      
    --text-claro: #FFFFFF;       
    --text-mutado: #9CA3AF;      
    --text-inverso: #1B202B;     
    --text-contacto-titulos: #E5B53D;
    --text-contacto-datos: #9CA3AF;

    /* Sombras */
    --shadow-fuerte: rgba(0,0,0,0.5);
    --shadow-media: rgba(0,0,0,0.4);
    --shadow-suave: rgba(0,0,0,0.3);
    
    /* Transparencias del acento */
    --acento-alpha-suave: rgba(229, 181, 61, 0.1);
    --acento-alpha-media: rgba(229, 181, 61, 0.4);
    --acento-alpha-fuerte: rgba(229, 181, 61, 0.5);

    /* Fuentes */
    --font-principal: 'Montserrat', sans-serif;
    --font-firma: 'Dancing Script', cursive;
}

/* ==========================================================================
   MODO CLARO (Tema Original Naranja/Blanco)
   ========================================================================== */
[data-theme="light"] {
    --color-fondo-1: #f47920;    
    --color-fondo-2: #ffffff;    
    --color-fondo-3: #bba28a;    
    --color-acento: #f47920;     
    
    --text-dorado: #f47920;      
    --text-claro: #ffffff;       
    --text-mutado: #666666;      
    --text-inverso: #ffffff;     
    --text-contacto-titulos: #ffffff;
    --text-contacto-datos: rgba(255,255,255,0.85);
    
    --shadow-fuerte: rgba(0,0,0,0.15);
    --shadow-media: rgba(0,0,0,0.1);
    --shadow-suave: rgba(0,0,0,0.05);

    /* En modo claro las sombras de acento toman el tono naranja base */
    --acento-alpha-suave: rgba(244, 121, 32, 0.1);
    --acento-alpha-media: rgba(244, 121, 32, 0.2);
    --acento-alpha-fuerte: rgba(244, 121, 32, 0.3);
}

/* Auto-detección del sistema para modo claro (Por defecto CSS) */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --color-fondo-1: #f47920;    
        --color-fondo-2: #ffffff;    
        --color-fondo-3: #bba28a;    
        --color-acento: #f47920;     
        
        --text-dorado: #f47920;      
        --text-claro: #ffffff;       
        --text-mutado: #666666;      
        --text-inverso: #ffffff;     
        --text-contacto-titulos: #ffffff;
        --text-contacto-datos: rgba(255,255,255,0.85);
        
        --shadow-fuerte: rgba(0,0,0,0.15);
        --shadow-media: rgba(0,0,0,0.1);
        --shadow-suave: rgba(0,0,0,0.05);

        --acento-alpha-suave: rgba(244, 121, 32, 0.1);
        --acento-alpha-media: rgba(244, 121, 32, 0.2);
        --acento-alpha-fuerte: rgba(244, 121, 32, 0.3);
    }
}

/* ==========================================================================
   ESTILOS GENERALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Transiciones suaves para el cambio de tema */
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

body {
    font-family: var(--font-principal);
    line-height: 1.6;
    color: var(--text-claro);
    background-color: var(--color-fondo-1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Utilidades de fondo */
.bg-dark-1 { background-color: var(--color-fondo-1); }
.bg-dark-2 { background-color: var(--color-fondo-2); }
.bg-dark-3 { background-color: var(--color-fondo-3); }

/* Utilidades de texto */
.text-gold { color: var(--text-dorado) !important; }
.text-light { color: var(--text-claro) !important; }
.text-muted { color: var(--text-mutado) !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.bold-text { font-weight: 700; }
.title-lg { font-size: 2.5rem; font-weight: 700; }
.title-xl { font-size: 3rem; font-weight: 700; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.text-lg { font-size: 1.2rem; }

/* ==========================================================================
   SECCIÓN 1: INICIO / CONTACTO
   ========================================================================== */
.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

.hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    background-color: var(--color-fondo-2);
    border-radius: 40px 120px 120px 40px;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-fuerte);
    text-align: center;
    position: relative;
    border: 1px solid var(--acento-alpha-suave);
}

.profile-pic-bg {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid var(--color-acento);
    overflow: hidden;
    padding: 8px; 
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.signature {
    font-family: var(--font-firma);
    font-size: 4rem;
    color: var(--text-dorado);
    margin-top: 20px;
    line-height: 1;
}

.hero-text {
    flex: 2;
    min-width: 300px;
    color: var(--text-claro);
}

.hero-text h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-contacto-titulos);
}

.contact-item p {
    font-size: 1rem;
    color: var(--text-contacto-datos);
}

.qr-code {
    position: absolute;
    bottom: -60px;
    right: 20px;
    background: var(--color-fondo-2);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-media);
    border: 1px solid var(--color-acento);
}

.qr-code img {
    width: 120px;
    height: 120px;
    display: block;
    background: #fff;
    padding: 5px;
    border-radius: 6px;
}

/* ==========================================================================
   SECCIÓN 2: CIMA
   ========================================================================== */
.cima-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.cima-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.cima-image img {
    width: 100%;
    border-radius: 0 80px 80px 0;
    box-shadow: 0 10px 30px var(--shadow-media);
    display: block;
}

.icon-floating {
    position: absolute;
    bottom: 30px;
    left: -25px;
    width: 60px;
    height: 60px;
    background-color: var(--color-acento);
    color: var(--text-inverso);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 5px 15px var(--acento-alpha-media);
}

.cima-text {
    flex: 1;
    min-width: 300px;
}

.cima-list {
    list-style-type: none;
    padding-left: 25px;
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2;
}

.cima-list li {
    position: relative;
}

.cima-list li::before {
    content: "•";
    color: var(--color-acento);
    position: absolute;
    left: -20px;
}

/* ==========================================================================
   SECCIÓN 3: SERVICIOS
   ========================================================================== */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-card {
    background-color: var(--color-fondo-2);
    border-radius: 15px;
    overflow: hidden;
    width: calc(20% - 16px);
    min-width: 180px;
    box-shadow: 0 5px 15px var(--shadow-suave);
    display: flex;
    flex-direction: column;
    border: 1px solid transparent; 
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-acento); 
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.service-card p {
    color: var(--text-dorado);
    font-weight: 700;
    padding: 15px;
    font-size: 0.95rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.services-banner {
    border-radius: 20px;
    padding: 30px;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px var(--shadow-suave);
    border: 1px dashed var(--acento-alpha-fuerte); 
}

/* ==========================================================================
   SECCIÓN 4: PROCESOS
   ========================================================================== */
.procesos-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.procesos-text {
    flex: 1.2;
    min-width: 300px;
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.custom-list li::before {
    content: "•";
    color: var(--color-acento);
    font-size: 2rem;
    position: absolute;
    left: 0;
    top: -10px;
}

.procesos-image {
    flex: 1;
    min-width: 300px;
}

.procesos-image img {
    width: 100%;
    border-radius: 20px 80px 20px 80px;
    box-shadow: 0 10px 30px var(--shadow-suave);
    display: block;
}

/* ==========================================================================
   SECCIÓN 5: CALENDARIO
   ========================================================================== */
.calendar-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.calendar-sidebar {
    flex: 0 0 250px;
}

.rounded-image {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 10px 20px var(--shadow-media);
    display: block;
    border: 2px solid var(--color-acento); 
}

.calendar-content {
    flex: 1;
    min-width: 300px;
}

.bullet-list-white {
    list-style-type: none;
    padding: 0;
}

.bullet-list-white li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.bullet-list-white li::before {
    content: "•";
    color: var(--color-acento);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* ==========================================================================
   THEME TOGGLE BOTÓN
   ========================================================================== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--color-fondo-2);
    color: var(--text-dorado);
    border: 2px solid var(--color-acento);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--shadow-media);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-icon {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   BOTÓN WHATSAPP FLOTANTE
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20BD5A;
    color: #FFF;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* ==========================================================================
   ADAPTACIÓN PARA MÓVILES Y PANTALLAS PEQUEÑAS (Responsive)
   ========================================================================== */
@media (max-width: 900px) {
    .qr-code {
        position: static;
        margin-top: 30px;
        display: inline-block;
    }
    .hero-text h2 { font-size: 2.5rem; }
    .title-lg { font-size: 2rem; }
    .title-xl { font-size: 2.2rem; }
    .cima-image img { border-radius: 20px; }
    .hero-image-wrapper { border-radius: 20px; }
    .service-card { width: calc(33.333% - 14px); }
}

@media (max-width: 600px) {
    .service-card { width: calc(50% - 10px); }
    .calendar-sidebar { flex: 1 1 100%; }
    .cima-text, .hero-text, .procesos-text { text-align: center; }
    .custom-list li, .bullet-list-white li { text-align: left; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .whatsapp-icon { width: 30px; height: 30px; }
    .theme-toggle { top: 10px; right: 10px; width: 45px; height: 45px; }
}
