/* estilo.css - Versión Final Optimizada */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    height: 80px;
    width: auto;
}

.eslogan {
    color: #666;
    font-size: 2rem;
}

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

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s;
}

nav ul li a:hover {
    color: #4fc3f7;
}

/* HERO SECTION */
.hero {
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #4fc3f7;
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn:hover {
    background-color: #29b6f6;
    transform: translateY(-2px);
}

/* FOOTER */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

footer .logo-footer {
    margin-bottom: 20px;
}

footer .logo-footer img {
    height: 40px;
}

.redes {
    margin: 20px 0;
}

.redes a {
    display: inline-block;
    margin: 0 10px;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.redes a:hover {
    transform: scale(1.2);
}

footer p {
    margin-top: 20px;
    color: #aaa;
}

/* BOTÓN WHATSAPP FLOTANTE */
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000; /* ¡Asegúrate de que sea alto! */
    transition: transform 0.3s;
    font-size: 1.5rem;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
}

/* SECCIÓN NOSOTROS - ESTILO MEJORADO */
.nosotros-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.nosotros-texto {
    flex: 1;
    min-width: 300px;
}

.nosotros-texto h2 {
    color: #4fc3f7;
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: left;
}

.nosotros-texto p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: left;
}

.nosotros-imagen {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.nosotros-imagen:hover {
    transform: translateY(-5px);
}

.nosotros-imagen img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.nosotros-imagen img:hover {
    transform: scale(1.03);
}

/* RESPONSIVE PARA NOSOTROS */
@media (max-width: 768px) {
    .nosotros-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin: 60px auto;
    }

    .nosotros-texto h2,
    .nosotros-texto p {
        text-align: center;
    }
}

/* SECCIÓN SERVICIOS - ESTILO MEJORADO */
.servicios-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.servicio-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.servicio-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.servicio-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.servicio-icono {
    width: 60px;
    height: 60px;
    background-color: #4fc3f7;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* SECCIÓN SERVICIOS - ESTILO MEJORADO */
.servicios-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.servicio-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.servicio-icono {
    width: 60px;
    height: 60px;
    background-color: #4fc3f7;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.servicio-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.servicio-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}


/* SECCIÓN GALERÍA - ESTILO MEJORADO */
.galeria-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.galeria-title {
    text-align: center;
    color: #4fc3f7;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

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

.galeria-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.galeria-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* SECCIÓN CONTACTANOS - ESTILO MEJORADO */
.contactanos-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.contactanos-title {
    text-align: center;
    color: #4fc3f7;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4fc3f7;
    outline: none;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.btn-submit {
    background-color: #4fc3f7;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #29b6f6;
}

.mapa-container {
    max-width: 100%;
    margin: 40px auto;
    text-align: center;
}

.mapa-container iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    height: 400px;
    border: none;
}
/* ====== FIX HEADER & LOGO ====== */
:root{ --header-h: 92px; }           /* altura total deseada del header */

header{
  height: var(--header-h);
}

nav{
  height: 100%;
  padding: 10px 20px;                /* un poco menos de padding vertical */
  align-items: center;               /* centra verticalmente logo y menú */
}

.logo-container img{
  max-height: calc(var(--header-h) - 22px);  /* el logo nunca supera la barra */
  height: auto;
  width: auto;
  display: block;
}

/* si usas eslogan junto al logo, limítalo para que no rompa la altura */
.eslogan{
  font-size: 1.25rem;
  line-height: 1.2;
  white-space: nowrap;
}

/* como el header es fixed, evita que el contenido quede oculto debajo */
body{ padding-top: var(--header-h); }

/* Responsive: reduce la barra y el logo en pantallas pequeñas */
@media (max-width: 992px){
  :root{ --header-h: 78px; }
  .eslogan{ font-size: 1rem; }
}
@media (max-width: 576px){
  :root{ --header-h: 66px; }
  .logo-container img{ max-height: calc(var(--header-h) - 16px); }
  .eslogan{ display:none; } /* opcional: ocultar eslogan en móvil */
}

