/* Configuración General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

/* Navbar */
header nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 10%;
    background: #fff;
}

header ul {
    display: flex;
    list-style: none;
}

header ul li a {
    text-decoration: none;
    color: #333;
    margin-left: 20px;
    font-size: 14px;
    font-weight: bold;
}

/* Hero Section - MODIFICADO */
/* Hero Section */
.hero {
    display: flex;
    height: 600px; 
    /* Agregamos ../ para salir de la carpeta css e ir a IMG */
    background-image: linear-gradient(to right, rgba(255,255,255,0.9) 30%, transparent), 
                      url('../IMG/home.png'); 
    
    background-size: cover;
    background-position: center;
    align-items: center;
    padding: 0 10%;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    max-width: 500px;
}

.highlight {
    color: #d4af37; /* Dorado de la imagen */
}

.btn-main {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #f1e4b8;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Barra de Cobertura */
.coverage-bar {
    background: #ececec;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.coverage-bar button {
    background: #5e35b1;
    color: white;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
}

/* Grid de Servicios */
.services-top {
    padding: 50px 10%;
    text-align: left;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card img {
    width: 100%;
    height: 250px; /* Altura fija para que todas se vean iguales */
    object-fit: cover;
    border-radius: 4px;
}

/* Sección Detalle - MODIFICADO */
.service-detail {
    display: flex;
    background: #fff;
    margin: 40px 0;
    min-height: 400px;
}

.detail-text {
    flex: 1;
    padding: 60px 10%;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-image {
    flex: 1;
    /* REMPLAZA 'valla-movil.jpg' POR LA IMAGEN DE LA SECCIÓN AZUL/VALLAS */
    background-image: url('valla-movil.jpg');
    background-size: cover;
    background-position: center;
}

/* Footer */
.main-footer {
    background: #dbe4f0;
    padding: 60px 10%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.box-logo {
    width: 80px;
    height: 80px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-cta {
    background: #fff;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta-form {
    margin-top: 20px;
}

.cta-form input {
    padding: 10px;
    width: 300px;
    border: 1px solid #ccc;
    background: #eef2f7;
}

.btn-purple {
    background: #5e35b1;
    color: white;
    padding: 10px 25px;
    border
    :none;}
    /* Título de transición */
.section-title {
    text-align: right;
    padding: 40px 10%;
    background-color: #fff;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 400;
}

/* Filas de Servicios */
.service-row {
    display: flex;
    height: 450px;
    width: 100%;
    margin-bottom: 20px;
}

.service-content {
    flex: 1;
    background-color: #f9f9f9;
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.service-image-bg {
    flex: 1.5;
    background-size: cover;
    background-position: center;
}

/* Rutas de imágenes - AJUSTA ESTO */
.spectacular-bg {
    background-image: url('../IMG/mini\ herader.png'); 
}

.mobile-bg {
    background-image: url('../IMG/Recurso\ 7.png');
}

/* Vallas Móviles con Caja Blanca Encima */
.mobile-billboard {
    position: relative;
    background-color: #89c4d1; /* Azul de fondo de la imagen */
}

.service-content-overlay {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.white-box {
    background: white;
    padding: 40px;s
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-gold {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background-color: #f1e4b8;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    width: fit-content;
}

/* Sección de Columnas Inferior - RESPONSIVE */
.features-benefits {
    display: grid;
    /* Por defecto en móvil: 1 sola columna */
    grid-template-columns: 1fr; 
    gap: 40px;
    padding: 40px 5%;
    background-color: #f2f5f8;
}

/* Cuando la pantalla sea más grande que 768px (Tablets y PC) */
@media (min-width: 768px) {
    .features-benefits {
        /* Volvemos a las 3 columnas del diseño original */
        grid-template-columns: repeat(3, 1fr);
        padding: 60px 10%;
    }
}

.info-column h4 {
    text-transform: lowercase;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f1e4b8; /* Añade una línea decorativa en móvil */
    display: inline-block;
}

.info-column p, .info-column li {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}
@media (max-width: 767px) {
    .service-row {
        flex-direction: column; /* Apila el texto arriba y la imagen abajo */
        height: auto; /* Permite que el contenido crezca */
    }

    .service-content, .service-image-bg {
        width: 100%;
        flex: none;
    }

    .service-image-bg {
        height: 250px; /* Altura fija para la imagen en móvil */
    }

    .service-content-overlay {
        padding: 20px 5%;
    }

    .white-box {
        padding: 20px;
        margin-top: -50px; /* Hace que la caja blanca suba un poco sobre la imagen */
        width: 90%;
    }
}