﻿/* ============================================= */
/* 1. VARIABLES Y CONFIGURACIÓN BASE             */
/* ============================================= */
:root {
    --ion-blue: #4FC3F7; /* Azul vibrante principal */
    --drift-silver: #DDE3EA; /* Tono metálico fichas */
    --text-dark: #2e3e63; /* Azul corporativo oscuro */
    --footer-grey: #94a3b8; /* Gris para textos secundarios */
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.split-container {
    display: flex;
    height: 100vh;
}

/* ============================================= */
/* 2. PANEL IZQUIERDO (DINÁMICO)                 */
/* ============================================= */
.left-panel {
    flex: 1;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 0 8%;
    position: relative;
    transition: background-color 0.6s ease;
}

    /* Filigrana suevicita (Puntitos grises claros) */
    .left-panel.detail-mode {
        background-image: radial-gradient(rgba(0,0,0,0.05) 0.5px, transparent 0.5px);
        background-size: 25px 25px;
    }

/* ALINEACIÓN DEL LOGO (Punto 1 corregido) */
.brand {
    position: absolute;
    top: 40px;
    left: 8%;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center; /* Centro vertical perfecto */
    gap: 12px;
    line-height: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* CONTENEDOR CENTRAL DE VISTAS */
.content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
}

.view {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 100%;
}

    .view.active {
        display: block;
        opacity: 1;
    }

/* HERO TEXT */
.hero-text h1 {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.1rem;
    color: #5c6b89;
    margin-bottom: 45px;
    max-width: 500px;
    line-height: 1.5;
}

/* ============================================= */
/* CONFIGURACIÓN DEL FORMULARIO DE CONTACTO      */
/* ============================================= */

.contact-form-container {
    max-width: 550px; /* Ajustado a tu medida */
    margin-top: -40px; /* Lo subimos un poco del centro visual */
}

/* Cabecera: Título y Botón Volver alineados */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

    .form-header h2 {
        font-size: 2.5rem;
        color: var(--text-dark);
        margin: 0;
        font-weight: 700;
    }

.contact-form-container > p {
    font-size: 1.05rem;
    color: #666;
    margin: 0 0 30px 0;
}

.input-group {
    margin-bottom: 18px;
}

    /* Estilo de los campos de texto */
    .input-group input,
    .input-group textarea {
        width: 100%;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid var(--drift-silver);
        background: transparent;
        outline: none;
        font-size: 1rem;
        color: var(--text-dark);
        transition: 0.3s;
    }

        /* Efecto al hacer clic en el campo */
        .input-group input:focus,
        .input-group textarea:focus {
            border-bottom: 2px solid var(--ion-blue);
        }

        /* [NUEVO] ESTILO PARA LOS PLACEHOLDERS (Gris tenue) */
        .input-group input::placeholder,
        .input-group textarea::placeholder {
            color: #b0bec5; /* Gris muy suave que no compite con el texto */
            font-weight: 300;
            opacity: 1; /* Necesario para que se vea igual en todos los navegadores */
        }


/* ============================================= */
/* 4. BOTONES Y ACCIONES                         */
/* ============================================= */
.cta-button {
    background-color: var(--ion-blue);
    color: white;
    padding: 16px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

    .cta-button:hover {
        background-color: #03a9f4;
        transform: translateY(-2px);
    }

/* Botón Volver (Estilo texto fino) */
.back-btn {
    background: transparent;
    border: none;
    color: var(--ion-blue);
    padding: 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    transition: 0.3s;
}

    .back-btn:hover {
        color: #03a9f4;
        text-decoration: underline;
    }

/* ============================================= */
/* 5. PANEL DERECHO (FICHAS)                      */
/* ============================================= */
.right-panel {
    flex: 1;
    background-color: var(--ion-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
}

.card {
    background-color: var(--drift-silver);
    width: 85%;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

    .card:hover {
        transform: translateX(-10px);
        background-color: #f8f9fa;
    }

.icon-ia {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 6px;
    margin-right: 15px;
    padding: 5px;
    box-sizing: border-box;
}

.card-content h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.card-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #777;
}

/* Bordes Pastel */
.pastel-cyan {
    border-left: 8px solid #B2EBF2;
}

.pastel-purple {
    border-left: 8px solid #E1BEE7;
}

.pastel-yellow {
    border-left: 8px solid #FFF9C4;
}

.pastel-green {
    border-left: 8px solid #C8E6C9;
}

.pastel-rose {
    border-left: 8px solid #F8BBD0;
}

/* ============================================= */
/* 6. PIES DE PÁGINA (FOOTERS)                   */
/* ============================================= */

/* Footer Izquierdo (InnConsulting) */
.footer-left {
    position: absolute;
    bottom: 30px;
    left: 8%;
    display: flex;
    gap: 25px;
    font-size: 0.72rem;
    color: var(--footer-grey);
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

    .contact-link:hover {
        color: var(--ion-blue);
    }

.footer-icon {
    width: 14px;
    height: 14px;
    color: var(--ion-blue);
}

/* Footer Derecho (Softmedia Tenue - Corregido) */
.footer-right {
    position: absolute;
    bottom: 30px;
    right: 8%;
    z-index: 10;
}

.softmedia-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.3); /* Muy tenue */
    font-size: 0.68rem;
    font-weight: 200; /* Extra fino */
    letter-spacing: 0.8px;
    transition: 0.3s ease;
}

    .softmedia-link:hover {
        color: rgba(255, 255, 255, 0.8);
    }

.soft-icon {
    width: 11px;
    height: 11px;
    stroke-width: 0.5px;
    opacity: 0.6;
}
/* ============================================= */
/* 7. RESPONSIVIDAD (MÓVIL PRO - FINAL V2)       */
/* ============================================= */
@media (max-width: 992px) {
    body, html {
        overflow-y: auto !important;
        height: auto !important;
    }

    .split-container {
        display: block;
        height: auto;
    }

    .left-panel, .right-panel {
        width: 100%;
        min-height: auto;
        padding: 100px 8% 50px 8%;
        box-sizing: border-box;
    }

    /* Logo Centrado */
    .brand {
        position: fixed;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        padding: 10px 25px;
        border-radius: 40px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        z-index: 1000;
        width: auto;
        white-space: nowrap;
    }

    /* --- CORRECCIÓN CABECERA DE DETALLE (Punto Crítico) --- */
    .form-header {
        display: flex;
        flex-direction: column-reverse !important; /* Botón arriba, título abajo */
        align-items: flex-start !important;
        gap: 12px;
        margin-bottom: 20px;
    }

        /* Reducción de fuente para títulos de detalle (Tu criterio aplicado) */
        .form-header h2 {
            font-size: 1.55rem !important; /* Más fino y profesional */
            line-height: 1.2;
            margin: 0;
            width: 100%;
            word-wrap: break-word; /* Evita que el texto rompa el layout */
        }

    .hero-text h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    /* --- BOTÓN VOLVER REFORZADO --- */
    .back-btn {
        position: relative;
        display: inline-flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.05); /* Fondo sutil para que sea fácil de clickear */
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.8rem;
        color: var(--ion-blue);
        margin-bottom: 5px;
    }

    /* Resto de estilos Pro */
    .right-panel {
        background-color: var(--ion-blue);
        padding-top: 60px;
        padding-bottom: 80px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .card {
        width: 100% !important;
        height: auto;
        min-height: 85px;
        padding: 18px 22px;
        background: white;
        border-radius: 18px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

    .footer-left, .footer-right {
        position: static;
        width: 100%;
        text-align: left !important;
        padding: 30px 8%;
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .footer-right {
        background: var(--ion-blue);
        color: white;
        padding-bottom: 50px;
    }

    .footer-left a[href*="wa.me"] svg,
    .footer-left a[href*="whatsapp"] svg {
        stroke: #25D366 !important;
        filter: drop-shadow(0 2px 4px rgba(37, 211, 102, 0.2));
    }
}


/* ============================================= */
/* 7. RESPONSIVIDAD (MÓVIL PRO - FINAL)          */
/* ============================================= */
/*@media (max-width: 992px) {*/
    /* Liberamos el scroll bloqueado en la configuración base */
    /*body, html {
        overflow-y: auto !important;
        height: auto !important;
    }

    .split-container {
        display: block;*/ /* Flujo natural hacia abajo */
        /*height: auto;
    }

    .left-panel, .right-panel {
        width: 100%;
        min-height: auto;
        padding: 100px 8% 50px 8%;
        box-sizing: border-box;
    }*/

    /* 1. LOGO CENTRADO Y MODERNO */
    /*.brand {
        position: fixed;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        padding: 10px 25px;
        border-radius: 40px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        z-index: 1000;
        width: auto;
        white-space: nowrap;
    }*/

    /* 2. TIPOGRAFÍA REFINADA */
    /*.hero-text h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 20px;
        color: var(--text-dark);
    }

    .hero-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 40px;
    }*/

    /* 3. FICHAS AZULES (ESTILO APP) */
    /*.right-panel {
        background-color: var(--ion-blue);
        padding-top: 60px;
        padding-bottom: 80px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .card {
        width: 100% !important;
        height: auto;
        min-height: 85px;
        padding: 18px 22px;
        background: white;
        border-radius: 18px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }*/

    /* 4. PIE DE PÁGINA ALINEADO A LA IZQUIERDA */
    /*.footer-left, .footer-right {
        position: static;
        width: 100%;
        text-align: left !important;
        padding: 30px 8%;
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .footer-right {
        background: var(--ion-blue);
        color: white;
        padding-bottom: 50px;
    }*/

    /* 5. LOGO WHATSAPP VERDE OFICIAL */
    /* Target específico al SVG dentro del link de WhatsApp */
    /*.footer-left a[href*="wa.me"] svg,
    .footer-left a[href*="whatsapp"] svg {
        stroke: #25D366 !important;
        filter: drop-shadow(0 2px 4px rgba(37, 211, 102, 0.2));
    }*/

    /* Ajustes para las vistas de detalle y contacto */
    /*.view {
        padding-top: 20px;
    }

    .back-btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
        background: #f0f4f8;
        border-radius: 12px;
        margin-top: 20px;
    }
}*/