/* --- CONFIGURACIÓN Y VARIABLES --- */
:root {
    --primary: #1a2a3a;    /* Azul marino institucional */
    --accent: #c4a77d;     /* Dorado arena */
    --bg-light: #f8f9fa;   /* Gris claro */
    --text-main: #333;
    --text-light: #666;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- ANIMACIONES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0; /* Estado inicial para la animación */
    animation: fadeInUp 0.8s ease forwards;
}

/* --- ESTRUCTURA PRINCIPAL (SPLIT SCREEN) --- */
.main-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- SECCIÓN VISUAL (IZQUIERDA) --- */
.hero-visual {
    flex: 0.8;
    background: url('images/calpe.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 60px;
    color: var(--white);
    min-height: 100vh;
}

.overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(0deg, rgba(26,42,58,0.75) 0%, rgba(26,42,58,0.2) 100%);
    z-index: 1;
}

.hero-inner-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.brand-top {
    margin-bottom: 40px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--white);
    text-transform: none;
}

.logo span { 
    font-weight: 300; 
    opacity: 0.8; 
}

.hero-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-style: italic;
    max-width: 480px;
    line-height: 1.2;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.4);
}

/* --- SECCIÓN DE CONTENIDO (DERECHA) --- */
.hero-content {
    flex: 1.2;
    padding: 80px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--white);
}

.tagline {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.4rem;
    color: var(--primary);
    margin-bottom: 25px;
    line-height: 1.1;
}

.main-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 45px;
    max-width: 620px;
}

/* --- TARJETAS B2B / B2C --- */
.target-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 60px;
}

.target-card {
    padding: 30px;
    background: var(--bg-light);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.target-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.target-card h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.target-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- FORMULARIO Y CTA --- */
.cta-section h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 600;
}

.subscribe-form {
    display: flex;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
    max-width: 600px;
}

.subscribe-form input {
    flex: 1;
    padding: 20px 25px;
    border: 1px solid #eee;
    border-right: none;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.subscribe-form input:focus {
    border-color: var(--accent);
}

.subscribe-form button {
    padding: 0 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.subscribe-form button:hover {
    background: var(--accent);
}

.form-note {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 15px;
}

/* --- FOOTER --- */
footer {
    margin-top: auto;
    padding-top: 50px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #bbb;
}

/* --- RESPONSIVE (TABLETS Y MÓVILES) --- */
@media (max-width: 1100px) {
    .main-container { 
        flex-direction: column; 
    }

    .hero-visual { 
        flex: none;
        height: 60vh; 
        min-height: 450px; 
        padding: 40px 30px;
    }

    .hero-inner-wrapper {
        justify-content: space-between;
    }

    .hero-quote blockquote {
        font-size: 1.8rem;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-content { 
        flex: none;
        padding: 50px 30px 80px 30px; 
    }

    h1 { 
        font-size: 2.4rem; 
        margin-top: 10px;
    }

    .target-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .subscribe-form {
        flex-direction: column;
        box-shadow: none;
        background: transparent;
    }

    .subscribe-form input {
        border-radius: 8px;
        margin-bottom: 12px;
        border-right: 1px solid #eee;
        padding: 18px;
    }

    .subscribe-form button {
        border-radius: 8px;
        padding: 18px;
        width: 100%;
    }

    footer {
        text-align: center;
        margin-top: 60px;
    }
}

/* MÓVILES MUY PEQUEÑOS */
@media (max-width: 480px) {
    .hero-visual {
        height: 50vh;
        padding: 30px 20px;
    }
    
    .logo { font-size: 1.4rem; }
    
    h1 { font-size: 2rem; }
    
    .hero-quote blockquote {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
}

/* --- ESTILOS DE MENSAJES DE ESTADO --- */
.status-msg {
    display: none; /* Se activa con el script */
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    animation: fadeInUp 0.5s ease forwards;
}

.success-msg {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.error-msg {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.success-msg strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}