/* --- estilos.css --- */

/* Estilos generales del body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
    background-image: url('img/web/fondoguiarubroshd.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

/* Encabezados */
h1, h2, h3, h4 {
    font-family: 'Segoe UI Semibold', sans-serif;
    color: #007bff;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Párrafos y enlaces */
p {
    margin-bottom: 15px;
    color: #444;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Estilo general para los selects */
select {
    width: 250px;
    height: 40px;
    padding: 6px 40px 6px 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;

    background-image: url('data:image/svg+xml;utf8,<svg fill="%23007bff" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Estilo para botones */
button,
input[type="submit"],
input[type="reset"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    background-color: #0056b3;
}

/* Responsive: fondo sin fixed en móviles 
*@media (max-width: 768px) {
 *   body {
  *      background-attachment: scroll;
   *     background-size: cover;
    *    background-position: center;
     *   background-repeat: no-repeat;
    *}
}*/

/* Tarjetas de resultados */
.contenedor-tarjetas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.resultado {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.resultado:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.resultado-logo {
    width: 100%;
    height: 120px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resultado-logo img,
.logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    height: auto;
    width: auto;
    max-height: 120px;
}

.redes {
    margin-top: 10px;
}

.redes a {
    display: inline-block;
    margin-right: 5px;
}

.redes img {
    width: 24px;
    height: 24px;
}

.resultado a.boton-vermas {
    text-decoration: none;
    color: white;
    background-color: #007bff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
    margin-top: 10px;
}

/* Responsive para resultados */
@media (max-width: 600px) {
    .resultado {
        font-size: 14px;
    }

    .resultado-logo {
        height: 100px;
    }

    .redes img {
        width: 20px;
        height: 20px;
    }

    .resultado a.boton-vermas {
        font-size: 13px;
        padding: 6px 10px;
    }

    .cabecera img {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Diseño para pantallas grandes */
@media (min-width: 1024px) {
    .contenedor-tarjetas {
        justify-content: flex-start;
    }

    .resultado {
        flex: 0 0 calc(33.333% - 20px);
    }

    .cabecera {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        display: flex;
        justify-content: center;
        background-color: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        text-align: center;
    }

    .cabecera img {
        width: 100%;
        height: auto;
        max-width: 900px;
        display: block;
        object-fit: contain;
    }
}

.formulario-contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 30px 15px;
    min-height: 300px; 
}

.formulario-contenedor form {
    width: 100%;
    max-width: 700px;
    
}

.formulario-contenedor form p {
    margin-bottom: 15px;
}

.formulario-contenedor select,
.formulario-contenedor button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}
.formulario-contenedor input.input-text,
.formulario-contenedor textarea.input-textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}
.mensaje {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.1em;
}

.mensaje.exito {
    color: #d84823 !important;
    font-weight: bold;
}

.mensaje.error {
    color: red;
    font-weight: bold;
}
.img-portada {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
}

/* Estilo especial para pantallas pequeñas */
@media (max-width: 600px) {
    .img-portada {
        margin: 10px auto;
        border-radius: 8px;
    }
}
.contenedor-img {
    text-align: center;
}

.contenedor-img img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.portada-contenedor {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
}

.portada-imagen {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.portada-imagen img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.portada-imagen:hover img {
  transform: scale(1.05); /* Zoom suave */
}

.portada-texto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
  background: rgba(249, 130, 74, 0.7);
  padding: 15px 25px;
  border-radius: 10px;
}

/* Navbar general */
.navbar {
    background-color: transparent; /* ✅ Fondo transparente */
    padding: 10px;
  }

  .navbar-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar-toggle {
    display: none;
    font-size: 26px;
    background-color: #007BFF; /* Azul */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  .navbar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
  }

  .navbar-menu li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 17px;
  }

  /* Responsive */
 @media (max-width: 768px) {
  .navbar-container {
    align-items: center;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
  }

  .navbar-menu.show {
    display: flex;
  }

  .navbar-menu li a {
    font-size: 18px;
  }
}

  
.portada-imagen {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  aspect-ratio: 16 / 9; /* ✅ Proporción adaptable para pantallas amplias */
}

.portada-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ Rellena sin deformarse */
  display: block;
  vertical-align: bottom; /* ✅ Evita espacio blanco abajo */
  transition: transform 0.3s ease;
}

@media (max-width: 500px) and (orientation: portrait) {
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
  }

  .portada-contenedor {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .portada-imagen {
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }

  .portada-imagen img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .cabecera {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .cabecera img {
    max-width: 90%;
    height: auto;
  }

  footer {
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
    background-color: rgba(255,255,255,0.8);
  }
}


/* Estilo base del texto sobre la portada */
.portada-texto {
  font-size: 28px;
  padding: 15px 25px;
}

/* Ajustes en pantallas medianas */
@media (max-width: 768px) {
  .portada-texto {
    font-size: 22px;
    padding: 12px 20px;
  }
}

/* Ajustes en pantallas pequeñas (celulares) */
@media (max-width: 480px) {
  .portada-texto {
    font-size: 18px;
    padding: 10px 16px;
  }
}

/* Ajuste para centrar la imagen en index.php */
body.index-portada {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.index-portada .portada-contenedor {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 15px;
}

.boton-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.boton-whatsapp:hover {
    background-color: #1ebe5b;
}
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nosotros-contenedor {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
    color: #fff;
    text-align: center;
}

.nosotros-intro h1,
.nosotros-equipo h2,
.nosotros-publicidad h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.nosotros-intro p,
.nosotros-publicidad p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.equipo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.persona {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s;
}

.persona:hover {
    transform: translateY(-5px);
}

.persona img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid #fff;
}

.persona h3 {
    margin-bottom: 10px;
    color: black;
}

.persona p {
    font-size: 1em;
    line-height: 1.5;
    color: black;
}

.nosotros-publicidad a {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.nosotros-publicidad a:hover {
    background-color: #e38144;
}

/* Responsive */
@media (max-width: 768px) {
    .equipo-grid {
        flex-direction: column;
        align-items: center;
    }

    .persona {
        max-width: 90%;
    }
}
