/* --- inicio.css (Corregido y Unificado) --- */

/* 1. SECCIÓN HERO */
.hero {
    position: relative;
    width: 100%;
    min-height: 550px; 
    height: auto; 
    display: flex;
    align-items: center;
    padding: 9% 9%;
    box-sizing: border-box; 
    background-image: var(--degradado-portada), url('../assets/inicio/portada.png');
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden; 
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; width: 100%; height: 80px;
    background: #f5f5f5;
    clip-path: ellipse(75% 100% at 50% 100%);
    z-index: 1; 
}

.hero-content {
    max-width: 45%; 
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero h3 { font-size: 25px; font-weight: bold; margin: 0; letter-spacing: 2px; }
.hero h1 { font-size: 4rem; font-weight: 700; margin: 15px 0; color: white; line-height: 1.1; }
.hero p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; }

.hero-brands { display: flex; gap: 25px; margin-bottom: 35px; }
.hero-brands img { 
    height: 80px; 
    border-radius: 8px; 
    box-shadow: rgba(255, 255, 255, 0.15); 
    padding: 5px;
}

.btn-chat {
    display: inline-block;
    padding: 14px 35px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    letter-spacing: 1px;
}

.btn-chat:hover { background: white; color: var(--color-principal); }

/* 2. SECCIÓN VENTAJAS (CORRECTAMENTE FUERA DEL MEDIA QUERY) */

.ventajas {
    background-color: #f5f5f5;
    padding: 80px 9%;
    text-align: center;
}

.ventajas-header {
    position: relative;
    margin-bottom: 60px;
    display: inline-block;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.ventajas-header h3 { font-size: 20px; font-weight: 600; color: var(--color-naranja); margin: 0; }
.ventajas-header h2 { font-size: 40px; font-weight: 600; color: var(--color-principal); margin: 10px 0 0 0; }

.cruz-decorativa {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
}

.tarjetas-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.tarjeta {
    flex: 1;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    overflow: hidden;
}

.tarjeta-head { background-color: var(--color-principal); padding: 30px 20px; color: white; display: flex; gap: 50px; font-size: 25px; }
.tarjeta-head .icono { font-size: 3rem; display: block;}
.tarjeta-head h3 { font-size: 25px; margin: 0; font-weight: 700; line-height: 1.3; text-align: left;}

.tarjeta-body { padding: 40px 30px; }
.tarjeta-body p { font-size: 1.05rem; color: var(--color-principal); line-height: 1.6; margin: 0; }

/*marcas */
.marcas {
    background-color: white;
    padding: 80px 9%;
    text-align: center;
}

.marcas-header {
    position: relative;
    margin-bottom: 60px;
    display: inline-block;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.marcas-header h3 { font-size: 20px; font-weight: 600; color: var(--color-naranja); margin: 0; }
.marcas-header h2 { font-size: 40px; font-weight: 600; color: var(--color-principal); margin: 10px 0 0 0; }
.marca-f1{
    display: flex; flex-wrap: wrap; gap: 15px; width: auto; justify-content: space-between; padding-bottom: 15px;
}

.marca-f1 img { 
    flex: 1 1 200;
    width: 18%;
    max-width:500px;
    min-height: 80px;
    height: auto;
    border-radius: 15px; 
    object-fit: contain;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    padding: 5px;
}

.marca-f2{
    display: flex; flex-wrap: wrap; gap: 15px; width: auto; justify-content: space-between; 
}
.marca-f2 img { 
    flex: 1 1 200;
    width: 18%;
    max-width:500px;
    min-height: 80px;
    height: auto;
    border-radius: 15px; 
    object-fit: contain;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    padding: 5px;
}

.accion{
    background-color: var(--color-principal); 
    padding: 20px 9%;
    display: flex;
    max-width: 100%;
    align-items: center;
}

.accion h2{
    color: white;
    letter-spacing: 1px;
}

.accion h3{
    color: white;
    font-weight: 100;
}

.accion-texto{
    width: 80%;
}

/* 3. RESPONSIVIDAD (SOLO LO QUE CAMBIA EN MÓVIL) */
@media (max-width: 768px) {
    /* Hero móvil */
    .hero { min-height: auto; padding: 60px 20px; text-align: center; flex-direction: column; justify-content: center; }
    .hero-content { max-width: 100%; padding: 0; }
    .hero h1 { font-size: 2.5rem; } 
    .hero-brands { justify-content: center; flex-wrap: wrap; gap: 15px; }
    .hero-brands img { height: 60px; }

    /* Ventajas móvil */
    .cruz-decorativa { display: none; }
    .tarjetas-container { flex-direction: column; align-items: center; }
    .tarjeta { max-width: 90%; margin-bottom: 20px; }
}