/*
 Theme Name:     Divi Child Enciso
 Theme URI:      https://encisonet.com
 Description:    Tema hijo profesional para Enciso
 Author:         SoyDigital
 Template:       Divi
 Version:        1.0.0
*/

/* 1. TIPOGRAFÍA Y BASE */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* 2. MENÚ TRANSPARENTE MODERNO */
#main-header {
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05) !important;
    border: none !important;
    transition: all 0.4s ease;
}

/* 3. BOTONES CON ESTILO SOYDIGITAL */
.et_pb_button {
    border-radius: 50px !important;
    text-transform: uppercase;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    padding: 12px 30px !important;
    transition: all 0.3s ease !important;
}

.et_pb_button:hover {
    background-color: #e67e22 !important; 
    border-color: #e67e22 !important;
    padding-right: 40px !important; 
}

/* 4. TÍTULOS CON IMPACTO */
h1, h2, h3 {
    font-weight: 800 !important;
    letter-spacing: -1px;
}

/* --- ESTILOS PARA EL HERO DE ENCISO --- */
.hero-enciso {
    padding: 120px 5%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    text-align: left;
}

/* Degradado lateral sutil modificado por ti */
.hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 60px 80px 60px 20px; 
    max-width: 800px;
    border-radius: 15px;
    backdrop-filter: none; 
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border: none;
    /* CONTROLES DE POSICIÓN (Arriba y a la Izquierda) */
    margin-top: -80px; 
    margin-left: -40px; 
}

/* Texto superior convertido en Etiqueta (Badge) naranja */
.hero-tagline {
    display: inline-block;
    background-color: #00000028; 
    color: #ffffff !important; 
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding: 6px 16px; 
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); 
}

/* Título Principal */
.hero-title {
    font-size: 90px !important;
    line-height: 1 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    margin-bottom: 20px !important;
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.8) !important;
}

.hero-title span {
    color: #e67e22;
}

/* Subtítulo */
.hero-subtitle {
    font-size: 20px;
    color: #ffffff !important;
    max-width: 550px;
    margin-bottom: 35px;
    font-weight: 600;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.7) !important;
}

/* Botones del Hero */
.hero-buttons a {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.btn-main { background: #e67e22; color: #fff !important; }
.btn-sec { border: 2px solid #fff; color: #fff !important; }

.btn-main:hover { background: #d35400; transform: translateY(-3px); }
.btn-sec:hover { background: #fff; color: #333 !important; transform: translateY(-3px); }

/* --- TARJETAS DE FONDO COMPLETO (NUEVO ESTILO) --- */
.card-pilar-full {
    position: relative; /* Necesario para que lo de dentro se posicione bien */
    border-radius: 30px;
    overflow: hidden; /* Recorta la imagen en las esquinas redondeadas */
    height: 450px; /* Altura fija para que sean cuadradas/rectangulares e imponentes */
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}

/* Efecto Hover: La tarjeta sube y la imagen hace un ligero zoom */
.card-pilar-full:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.card-pilar-full:hover .card-bg-image {
    transform: scale(1.05); /* Zoom suave en la imagen */
}

/* La imagen de fondo */
.card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Clave: rellena todo el espacio sin deformarse */
    z-index: 1; /* Capa más baja */
    transition: transform 0.5s ease;
}

/* La capa oscura (Overlay) para que se lea el texto */
.card-pilar-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado: transparente arriba, oscuro abajo */
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2; /* Capa intermedia */
}

/* El contenedor del texto */
.card-content {
    position: relative;
    z-index: 3; /* Capa superior (encima de todo) */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Empuja el texto hacia abajo */
    padding: 35px;
}

/* Estilos de Texto (Ahora en blanco) */
.card-tag {
    font-size: 12px;
    font-weight: 800;
    color: #e67e22; /* Naranja Enciso */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.card-title {
    font-size: 32px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin-bottom: 15px !important;
    line-height: 1.1 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.card-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9); /* Blanco casi puro */
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: 500;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .card-pilar-full {
        height: 400px; /* Un poco menos altas en móvil */
    }
    .card-title {
        font-size: 26px !important;
    }
}

/* ========================================= */
/* --- ADAPTACIÓN PARA MÓVILES (RESPONSIVE) --- */
/* ========================================= */

@media (max-width: 768px) {
    
    /* 1. Damos aire general a los lados de la pantalla */
    .hero-enciso {
        padding: 50px 15px !important; 
        justify-content: center !important; 
        text-align: center !important;
        min-height: auto !important; 
    }

    /* 2. Caja oscura: Le damos relleno INTERNO para que nada toque los bordes */
    .hero-overlay {
        margin: 0 auto !important; 
        padding: 40px 20px !important; 
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        background: rgba(0, 0, 0, 0.6) !important; 
        border-radius: 20px !important; 
    }

    /* 3. Textos: MEJORA DE LECTURA EN MÓVIL */
    .hero-title {
        font-size: 42px !important;
        margin-bottom: 15px !important;
        margin-top: 0px !important;
    }

    /* Aquí está la magia para el texto pequeño */
    .hero-subtitle {
        font-size: 17px !important; /* Subimos un puntito el tamaño */
        font-weight: 700 !important; /* Lo hacemos más 'bold' (gordito) */
        margin-bottom: 30px !important;
        line-height: 1.6 !important; /* Damos un poco más de aire entre las líneas */
        padding: 0 15px !important; /* Lo empujamos hacia el centro para que no toque los bordes */
        white-space: normal !important; 
        text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.9) !important; /* Sombra mucho más dura y oscura */
    }
    
    .hero-tagline {
        font-size: 11px !important;
        padding: 6px 14px !important;
        margin: 0 auto 20px auto !important; 
        display: inline-block !important;
    }

    /* 4. Botones: Limitamos su ancho */
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important; 
        gap: 15px !important; 
        align-items: center !important;
        width: 100% !important;
    }

    .hero-buttons a {
        display: block !important;
        width: 100% !important;
        max-width: 280px !important; 
        box-sizing: border-box !important;
        margin: 0 auto !important; 
    }
}