/* ======================================================= */
/* --- 1. VARIABLES Y GENERALES --- */
/* ======================================================= */
:root {
    --primary: #ff8c42; /* Naranja/Coral */
    --primary-light: #ffe0b2;
    --secondary: #f3f4f6;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--secondary);
    color: var(--text-dark);
    padding-bottom: 80px; /* Espacio para el menú inferior */
}

/* ======================================================= */
/* --- 2. HERO SECTION (FONDO Y TEXTOS) --- */
/* ======================================================= */

.hero-imagen {
    background-image: url('puertadeltiempo.png'); 
    background-size: cover;
    
    /* --- CAMBIO CLAVE AQUÍ --- */
    /* En lugar de 'center', usamos '80% center'. 
       Esto le dice: "Muéve la imagen hacia la derecha (al 80%) y céntrala verticalmente" */
    background-position: 80% center; 
    /* ------------------------- */

    /* Altura dinámica para móviles */
    min-height: 100vh; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    margin: 0;
}

/* --- IMPORTANTE: Restaurar el centro en PC --- */
/* Agrega esto dentro de tu media query de escritorio (al final del archivo) 
   para que en la computadora siga viéndose centrada y no chueca */

@media (min-width: 768px) {
    .hero-imagen {
        background-position: center center; /* En pantalla grande se ve completa/centrada */
        background-attachment: fixed; /* Efecto parallax opcional */
        min-height: 600px;
    }
}

.hero-superposicion {
    background-color: rgba(0, 0, 0, 0.5); /* Oscuridad media para leer bien */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centrado vertical y horizontal */
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-superposicion h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.hero-subtitulo {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* ======================================================= */
/* --- 3. ESTRUCTURA DEL BUSCADOR (Inputs + Iconos) --- */
/* ======================================================= */

/* Contenedor Padre */
.contenedor-principal-hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    gap: 20px;
    margin-top: 10px;
}

/* Grupo de Inputs y Botón */
.fila-buscador {
    display: flex;
    flex-direction: column; /* Móvil: Apilados */
    gap: 10px;
    width: 100%;
}

/* Inputs y Selects */
.input-busqueda-blanco {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: none;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 1rem;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Fix para Selects en iPhone/Android */
select.input-busqueda-blanco {
    -webkit-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px auto;
    background-color: #fff;
}

/* Botón Buscar */
.btn-buscar-naranja {
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg, #FF9D4D 0%, #E65100 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.4);
    text-transform: uppercase;
}

/* Panel de Iconos (Accesos Rápidos) */
.panel-accesos-rapidos {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 15px 10px;
    display: flex; 
    flex-direction: row; /* Siempre horizontal */
    justify-content: space-between; 
    align-items: flex-start;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.acceso-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 25%;
    text-align: center;
}

.icono-circulo {
    width: 45px;
    height: 45px;
    background-color: #ffe0b2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.icono-circulo i {
    color: #ff8c42;
    font-size: 1.2rem;
}

.acceso-item span {
    font-size: 0.75rem;
    color: #333;
    font-weight: 600;
}

/* ======================================================= */
/* --- 4. RESULTADOS Y TARJETAS PREMIUM --- */
/* ======================================================= */

main {
    margin-top: 20px;
    padding: 20px;
}

.grid-resultados {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card-premium {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* IMAGEN FIJA (Evita tarjetas gigantes) */
.card-image-container {
    width: 100%;
    height: 180px !important;
    position: relative;
    background-color: #f0f0f0;
    overflow: hidden;
}

.card-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

.badge-verificado {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #00b894;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-fav-flotante {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 1.1rem;
}

.card-content {
    padding: 15px;
}

.card-category {
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.card-rating {
    font-size: 0.8rem;
    color: #fbc02d;
    font-weight: 700;
}

.card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-location {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.card-divider {
    height: 1px;
    background: #eee;
    margin-bottom: 10px;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.status-text.activo {
    color: #00b894;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-card-action {
    background: #f3f4f6;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

/* ======================================================= */
/* --- 5. MENÚ INFERIOR (Bottom Nav) --- */
/* ======================================================= */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.75rem;
    padding: 5px 10px;
}

.nav-item i { font-size: 1.3rem; margin-bottom: 3px; }
.nav-item.active { color: #8e2de2; font-weight: 600; }

/* ======================================================= */
/* --- 6. ESTILOS GLOBALES DE FORMULARIOS (Login/Perfil) --- */
/* ======================================================= */

.container-panel {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }

.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem;
}

/* ======================================================= */
/* --- 7. MEDIA QUERIES (ESCRITORIO) --- */
/* ======================================================= */

@media (min-width: 768px) {
    
    /* En PC el hero es más corto y fijo */
    .hero-imagen {
        min-height: 600px;
        background-attachment: fixed;
    }
    
    .hero-superposicion h1 {
        font-size: 3rem;
    }

    /* Fila horizontal para el buscador en PC */
    .fila-buscador {
        flex-direction: row;
        background: rgba(0,0,0,0.6);
        padding: 15px;
        border-radius: 10px;
        gap: 15px;
    }

    /* Ajuste inputs en PC */
    .input-busqueda-blanco {
        border-radius: 5px;
    }

    /* Ajuste botón en PC */
    .btn-buscar-naranja {
        width: auto;
        padding: 0 40px;
    }

    /* Panel de iconos centrado en PC */
    .panel-accesos-rapidos {
        width: 80%;
        margin: 30px auto 0 auto;
    }

    /* Grid de resultados */
    .grid-resultados {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* ======================================================= */
/* --- ESTILOS ESPECÍFICOS DEL PERFIL (proveedor.html) --- */
/* ======================================================= */

/* Header degradado */
.header-proveedor {
    background: linear-gradient(to right, #ff8c42, #ff5e62); /* Naranja a Rojo */
    padding: 15px;
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
}

.header-nav {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}
.header-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.header-nav a.active {
    color: white;
    border-bottom: 2px solid white;
}

/* Slider de fotos */
.top-gallery-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px;
    background: #fff;
}
.gallery-item img {
    width: 140px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
}

/* Tarjeta de Info */
.perfil-info-card {
    background: white;
    margin: 15px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: -10px; /* Efecto de solapamiento */
    position: relative;
}

.perfil-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.perfil-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff8c42;
}

.perfil-titulo h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.btn-chat {
    margin-left: auto;
    background: #25D366; /* Color WhatsApp */
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* Botones de acción */
.perfil-botones-accion {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.perfil-botones-accion button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.btn-contacto { background: #ff8c42; color: white; }
.btn-compartir { background: #f0f2f5; color: #333; }

/* Calificaciones y Galería */
.calificaciones-estrellas {
    background: white;
    margin: 0 15px 15px 15px;
    padding: 20px;
    border-radius: 15px;
}

.bottom-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 15px 100px 15px;
}
.bottom-gallery-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.btn-cerrar-sesion {
    width: 90%;
    margin: 0 auto;
    display: block;
    background: #ff4757;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
}
/* ======================================================= */
/* --- NUEVOS ESTILOS PARA BOTONES DE CONTACTO (UX) --- */
/* ======================================================= */

.footer-actions {
    display: flex;
    gap: 10px; /* Espacio entre el botón de whats y el de llamar */
    align-items: center;
}

/* Estilo base del botón circular */
.btn-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Efecto al presionar */
.btn-action-icon:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Colores específicos */
.btn-whatsapp {
    background-color: #25D366; /* Verde oficial WhatsApp */
    background: linear-gradient(145deg, #25D366, #128C7E);
}

.btn-phone {
    background-color: #3B82F6; /* Azul llamada */
    background: linear-gradient(145deg, #3B82F6, #2563EB);
}

/* Ajuste para el botón "Ver Perfil" (hacerlo más sutil para dar prioridad al contacto) */
.btn-card-action {
    background: transparent;
    border: 1px solid #eee;
    color: #555;
    padding: 6px 12px;
    font-size: 0.8rem;
}
.btn-card-action:hover {
    background: #f9f9f9;
    border-color: #ddd;
}
/* Botón Compartir */
.btn-share {
    background-color: #6c757d; /* Gris neutro */
    background: linear-gradient(145deg, #6c757d, #495057);
}
/* Corrección para que las estrellas reciban clics */
.rating-input {
    position: relative;
    z-index: 50; /* Asegura que esté por encima de todo */
    display: inline-flex; /* Mantiene las estrellas juntas */
    gap: 5px;
}

.rating-input i {
    cursor: pointer !important; /* Fuerza el icono de manita */
    transition: transform 0.2s;
    padding: 5px; /* Aumenta el área de clic */
}

.rating-input i:hover {
    transform: scale(1.2); /* Efecto visual al pasar el mouse */
}
/* ======================================================= */
/* --- GALERÍA SLIDER Y MODAL --- */
/* ======================================================= */

/* 1. Ajuste del Contenedor para que sea Slider */
.bottom-gallery-grid {
    display: flex; /* En fila, no en grid */
    overflow-x: auto; /* Scroll horizontal */
    scroll-behavior: smooth; /* Deslizado suave */
    gap: 15px;
    padding: 10px 5px;
    
    /* Ocultar barra de scroll visualmente pero mantener funcionalidad */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}
.bottom-gallery-grid::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

.bottom-gallery-grid .grid-item {
    flex: 0 0 200px; /* Ancho fijo de cada foto */
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.bottom-gallery-grid .grid-item:hover {
    transform: scale(1.03);
}

/* 2. ESTILOS DEL MODAL (Ventana Emergente) */
.modal-galeria {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999; /* Encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Fondo negro casi opaco */
    backdrop-filter: blur(5px); /* Efecto borroso de fondo */
    align-items: center;
    justify-content: center;
}

/* Imagen dentro del modal */
.modal-contenido {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation: zoomIn 0.3s;
}

/* Botón de cerrar (X) */
.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.cerrar-modal:hover {
    color: var(--primary);
}

/* Animación de entrada */
@keyframes zoomIn {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* ======================================================= */
/* --- BANNERS Y SLIDERS (MARKETING) --- */
/* ======================================================= */

/* 1. BANNER SUPERIOR FIJO (STICKY TOP) */
.banner-top-movil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #333; /* Color oscuro para contraste */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Encima de todo */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.banner-top-movil img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.cerrar-banner {
    position: absolute;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
}

/* 2. SLIDER PRINCIPAL (CARRUSEL) */
.slider-contenedor {
    max-width: 100%;
    position: relative;
    margin: 15px 0; /* Espacio arriba y abajo */
    height: 180px; /* Altura del banner principal */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mi-slide {
    display: none; /* Ocultos por defecto */
    height: 100%;
    width: 100%;
}

.mi-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animación de desvanecimiento */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* 3. BANNER INFERIOR FIJO (STICKY BOTTOM) */
.banner-bottom-movil {
    position: fixed;
    bottom: 70px; /* 70px para que quede ARRIBA del menú de navegación */
    left: 50%;
    transform: translateX(-50%);
    width: 95%; /* Casi todo el ancho */
    height: 60px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    z-index: 1900;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ddd;
}
.banner-bottom-movil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* AJUSTE DEL CUERPO PARA QUE NO SE TAPE EL CONTENIDO */
/* Como agregamos un banner arriba de 50px, empujamos el body */
body.con-banner-top {
    padding-top: 50px; 
}
/* ======================================================= */
/* --- ESTILOS DE CATEGORÍAS (Página Explorar) --- */
/* ======================================================= */

.grid-categorias {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */
    gap: 15px;
    padding-bottom: 20px;
}

.card-categoria {
    background: white;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px; /* Altura fija para que se vean uniformes */
}

.card-categoria:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.icon-box {
    width: 55px;
    height: 55px;
    background: var(--primary-light); /* Fondo naranja claro */
    color: var(--primary); /* Icono naranja fuerte */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.card-categoria h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
}

/* Ajuste para PC (4 columnas) */
@media (min-width: 768px) {
    .grid-categorias {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* ======================================================= */
/* --- ESTILOS PARA VIDEO DE FONDO (ANÚNCIATE) --- */
/* ======================================================= */

.hero-video-container {
    position: relative;
    height: 350px; /* Altura del banner */
    width: 100%;
    overflow: hidden; /* Corta lo que sobre del video */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333; /* Color de fondo mientras carga */
}

.video-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* CLAVE: Hace que el video cubra todo sin deformarse */
    transform: translate(-50%, -50%); /* Centra el video */
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurece el video al 50% */
    z-index: 1;
}

.video-contenido {
    position: relative;
    z-index: 2; /* Asegura que el texto esté encima del video y la capa oscura */
    text-align: center;
    color: white;
    padding: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
/* Estilo para inputs y selects deshabilitados */
.input-busqueda-blanco:disabled {
    background-color: #e9ecef; /* Gris claro */
    color: #6c757d; /* Texto gris */
    cursor: not-allowed; /* Icono de prohibido al pasar el mouse */
    opacity: 0.8;
}



/* ======================================================= */
/* --- HOME MEJORADA (index.html) --- */
/* ======================================================= */

/* Texto central del hero */
.hero-texto-central {
    max-width: 780px;
    margin: 0 auto 10px auto;
}

.badge-hero {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(6px);
}

.hero-texto-central h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

.hero-texto-central .hero-subtitulo {
    max-width: 700px;
    margin: 0 auto 24px auto;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.95);
}

/* Búsquedas sugeridas */
.busquedas-sugeridas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.busquedas-sugeridas span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.busquedas-sugeridas a {
    text-decoration: none;
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.busquedas-sugeridas a:hover {
    background: rgba(255,255,255,0.24);
    transform: translateY(-1px);
}

/* Mejoras de buscador */
.fila-buscador {
    backdrop-filter: blur(4px);
}

.input-busqueda-blanco:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.22);
}

.btn-buscar-naranja {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-buscar-naranja:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(230, 81, 0, 0.32);
}

.btn-buscar-naranja:active {
    transform: scale(0.98);
}

/* Panel accesos mejorado */
.panel-accesos-rapidos {
    margin-top: 8px;
}

.acceso-item {
    transition: transform 0.2s ease;
}

.acceso-item:hover {
    transform: translateY(-4px);
}

.icono-circulo {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.acceso-item:hover .icono-circulo {
    transform: scale(1.06);
    box-shadow: 0 8px 16px rgba(255,140,66,0.18);
}

/* Secciones generales */
.seccion-confianza,
.seccion-destacados,
.seccion-como-funciona,
.seccion-anunciate {
    margin-top: 10px;
    margin-bottom: 28px;
}

.encabezado-seccion {
    margin-bottom: 18px;
}

.encabezado-seccion h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.encabezado-seccion p {
    color: var(--text-gray);
    font-size: 0.96rem;
    line-height: 1.6;
}

/* Estadísticas / confianza */
.mini-estadisticas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.stat-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    border: 1px solid #ececec;
}

.stat-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #1f2937;
}

.stat-item span {
    display: block;
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Mensaje de carga */
.mensaje-carga {
    width: 100%;
    text-align: center;
    color: #666;
    background: #fff;
    border: 1px dashed #d8d8d8;
    padding: 30px 20px;
    border-radius: 14px;
    font-weight: 500;
}

/* Cómo funciona */
.pasos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.paso-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #efefef;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.paso-icono {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px auto;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.paso-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #1f2937;
}

.paso-card p {
    color: #6b7280;
    font-size: 0.93rem;
    line-height: 1.6;
}

/* CTA anunciate */
.cta-anunciate {
    background: linear-gradient(135deg, #fff3e8 0%, #ffffff 100%);
    border: 1px solid #ffe1cc;
    border-radius: 22px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(255,140,66,0.08);
}

.cta-anunciate h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.cta-anunciate p {
    color: #6b7280;
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Mejor separación del main en home */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Ajustes visuales a tarjetas existentes */
.card-premium {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.10);
}

.card-content {
    padding: 16px;
}

.card-name {
    font-size: 1.08rem;
}

.card-location {
    line-height: 1.5;
}

/* ======================================================= */
/* --- RESPONSIVE HOME MEJORADA --- */
/* ======================================================= */

@media (min-width: 768px) {
    .hero-texto-central h1 {
        font-size: 3.2rem;
    }

    .hero-texto-central .hero-subtitulo {
        font-size: 1.08rem;
    }

    .mini-estadisticas {
        grid-template-columns: repeat(3, 1fr);
    }

    .pasos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .encabezado-seccion h2 {
        font-size: 1.9rem;
    }

    .cta-anunciate {
        padding: 38px 32px;
    }

    .cta-anunciate h2 {
        font-size: 2rem;
    }

    main {
        padding: 34px 20px;
    }
}

@media (max-width: 767px) {
    .hero-superposicion {
        padding: 18px;
    }

    .hero-texto-central h1 {
        font-size: 2rem;
    }

    .hero-subtitulo {
        margin-bottom: 22px;
    }

    .panel-accesos-rapidos {
        padding: 14px 8px;
    }

    .icono-circulo {
        width: 42px;
        height: 42px;
    }

    .acceso-item span {
        font-size: 0.72rem;
    }

    .encabezado-seccion h2 {
        font-size: 1.35rem;
    }
}