/* VARIABLES DE MARCA */
:root {
    --azul-continental: #1A237E;
    --naranja-impulso: #FF6D00;
    --gris-profundo: #263238;
    --blanco-nube: #F5F5F5;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, .logo-text {
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.main-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gris-profundo);
}

.logo-text span {
    color: var(--naranja-impulso);
}

.btn-primary {
    background: var(--naranja-impulso);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    color: var(--azul-continental);
    text-decoration: none;
    margin-right: 20px;
    font-weight: 600;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(26, 35, 126, 0.9), rgba(26, 35, 126, 0.9)), url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative; 
    padding-bottom: 100px; /* Espacio extra para que el botón no pise nada */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* BUSCADOR */
.search-box {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.search-form input, .search-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-search {
    background: var(--naranja-impulso);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}

/* INFO BLOCKS */
.info-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 80px 20px;
    text-align: center;
}

.block h3 {
    color: var(--azul-continental);
    margin-bottom: 15px;
}

/* CONTACT SECTION */
.contact-section {
    background: var(--blanco-nube);
    padding: 80px 0;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

footer {
    background: var(--gris-profundo);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

select:disabled {
    background-color: #eee;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Contenedor de resultados */
.results-section {
    display: block; /* Asegura que ocupe su propia línea */
    clear: both;    /* Evita que elementos flotantes se encimen */
    margin-top: 50px; /* Empuja los resultados hacia abajo del botón buscar */
    padding: 20px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    min-height: 200px; /* Evita que la página "salte" cuando no hay nada */
}

.result-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e1e4e8;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
    animation: slideUp 0.4s ease-out;
}

.result-card:hover {
    transform: translateY(-3px);
    border-color: var(--naranja-impulso);
}

.result-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.result-text {
    flex: 1;
    min-width: 250px;
}

.result-category {
    display: inline-block;
    color: var(--naranja-impulso);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.result-title {
    font-size: 1.6rem; /* Nombre del negocio bien grande */
    color: var(--azul-continental);
    margin: 0 0 8px 0;
    font-family: 'Montserrat', sans-serif;
}

.result-location {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.btn-primary {
    white-space: nowrap;
    padding: 12px 25px;
    background-color: var(--naranja-impulso);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #e66200;
}

/* Estilo para cuando no hay resultados */
.no-results {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #777;
    border: 2px dashed #ddd;
}

/*Cookie Banner */
.cookie-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c3e50; /* Color oscuro profesional */
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999; /* Por encima de todo */
  font-family: sans-serif;
  font-size: 14px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-container a {
  color: #3498db;
  text-decoration: underline;
}

.cookie-btn {
  background: #25d366; /* Verde similar al de WhatsApp para coherencia */
  border: none;
  color: white;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  margin-left: 20px;
}

.cookie-btn:hover {
  background: #128c7e;
}

/* Para ocultarlo cuando el usuario acepte */
.cookie-container.hidden {
  display: none;
}


/* Botón de Whatsapp */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .float-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
  }

.float-whatsapp i {
  font-size: 35px; /* Ajusta el tamaño del logo */
  line-height: 60px; /* Centra verticalmente si no usas flexbox */
}

.about-platform {
    padding: 60px 20px;
    background: #ffffff;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-item h3 {
    color: var(--azul-continental);
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

.card { 
    background: #fff; 
    padding: 40px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f66505;
    position: relative;
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-10px); }

.btn-main { 
    display: block; 
    background-color: #5271ff; 
    color: white; 
    padding: 18px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 700; 
    text-align: center; 
    margin-bottom: 15px;
}

.btn-outline { 
    display: block; 
    background-color: green; 
    color: #fff; 
    padding: 18px; 
    border-radius: 12px; 
    text-decoration: none; 
    border: 2px solid var(--primary); 
    font-weight: 600; 
    text-align: center;
}

/* Efecto hover suave */
.btn-main:hover { background: #e66200; }
.btn-outline:hover { background-color: #f66505; color: white; }

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 40px 0;
}

.pro-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.pro-card:hover {
    transform: translateY(-5px);
    border-color: var(--naranja-impulso);
}

.pro-badge {
    background: var(--naranja-impulso);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-ficha {
    display: block;
    background: var(--azul-continental);
    color: white;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.aviso-legal  {
    h1 {
    text-align: center;
  }
    h2 {
    text-align: center;
  }
    h3 {
    text-align: center;
    text-decoration: underline;
  }
    h4 {
    text-align: center;
    text-decoration: underline;
  }
    p {
    text-align: justify;
    padding-left: 10%;
    padding-right: 10%;
  }
    ol {
    text-align: justify;
    padding-left: 10%;
    padding-right: 10%;
  }
    ul {
    text-align: justify;
    padding-left: 10%;
    padding-right: 10%;
  }
}

.separador {
    height: 15px;
}

@media (max-width: 600px) {
    .result-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .search-form {
        grid-template-columns: 1fr;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}