* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;

}

/* Preloader - pantalla completa */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* ✅ Centrado horizontal */
    text-align: center;
}

/* Escondemos el botón hamburguesa por defecto */
.hamburger {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

#whatsapp-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: grab;
    z-index: 10000;
    user-select: none;
}

#whatsapp-bubble img {
    width: 30px;
    height: 30px;
    filter: invert(1);
}

#scrollToTop {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #2caf7d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: background-color 0.3s ease;
}

#scrollToTop:hover {
    background-color: #1e7c59;
}

#scrollToTop svg {
    width: 24px;
    height: 24px;
    stroke: white;
}


.logo {
    width: 100px;
    margin-bottom: 20px;
}

.spinner {
    border: 6px solid #ccc;
    border-top: 6px solid #1c9b5b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

header {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;

}

.logo {
    width: 300px;
    height: auto;
    margin-top: 50px;
}

/* Nav principal */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    position: relative;
    justify-content: center; /* Esto centra los elementos dentro del contenedor */
    align-items: center;
}

nav ul li {
    position: relative;
    /* Necesario para posicionar bien el dropdown */
}

nav ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 10px;
    display: block;

}

nav ul li a:hover {
    color: #2caf7d;
}

/* Aseguramos que el contenedor de la opción del menú tenga posición relativa */
li.dropdown {
    position: relative;
}

/* Estilo para el menú desplegable */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; 
    left: 60%; /* Centramos el menú */
    transform: translateX(-50%); /* Lo ajustamos para que quede exactamente centrado */
    background-color: #ffffff;
    min-width: 200px;
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
    margin-left: 0;
}

/* Estilo para los elementos dentro del menú */
.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    color: #000000;
    padding: 10px 25px;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: #ffffff; /* Fondo cuando el cursor pasa sobre el elemento */
}

/* Mostrar el menú al hacer hover en la opción padre */
li.dropdown:hover .dropdown-menu {
    display: block;
}




.container {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
}

.card {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card h2 {
    color: #2caf7d;
}

ul {
    padding-left: 20px;
}

h1,
h2,
h3 {
    color: #27ae60;
    margin-bottom: 0.4em;
}

p {
    margin-bottom: 1em;
}

a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* Contenedor principal */
.container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

.card {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card h2 {
    color: #2caf7d;
}

ul {
    padding-left: 20px;
}

h1,
h2,
h3 {
    color: #27ae60;
    margin-bottom: 0.4em;
}

p {
    margin-bottom: 1em;
}

a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Sección Hero */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.hero-text {
    flex: 1 1 450px;
    color: #005f63;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #005f63;
}

.hero-text p {
    font-size: 1.25rem;
    color: #555;
}

.hero-img {
    flex: 1 1 400px;
    text-align: center;
}

.hero-img img {
    width: 320px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

/* Animación para la imagen hero y secciones */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Secciones alternadas */
.section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 20px 0;
}

.section:nth-child(even) {
    flex-direction: row-reverse;
    background: #ecf9f1;
    border-radius: 12px;
    padding: 40px 20px;
}

.section-img,
.section-text {
    flex: 1 1 450px;
}

.section-img img {
    width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

/* Títulos de sección */
.section-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #005f63;
}

.section-text ul {
    list-style: none;
    padding-left: 0;
    color: #005f63;
}

.section-text ul li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    font-weight: 600;
    color: #005f63;
}

.section-text ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #005f63;
    font-weight: 700;
}

/* Botón CTA */
.cta {
    text-align: center;
    margin-top: 40px;
}

.cta h2 {
    color: #005f63;
}

.cta a {
    background-color: #005f63;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 6px 12px #005f63;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.cta a:hover {
    background-color: #005f63;
}



.main-footer {
    background-color: #386f63;
    color: #fff;
    padding: 40px 20px 20px;
    font-family: sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 60px;
}

.footer-section {
    flex: 1 1 300px;
    margin: 20px;
}

.footer-section h3 {
    color: #6dd3bd;
    margin-bottom: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.social-icons img {
    width: 24px;
    height: 24px;
    filter: invert(1);
    transition: transform 0.2s;
}

.social-icons img:hover {
    transform: scale(1.2);
}


.footer-bottom {
    text-align: center;
    padding-top: 0px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #ccc;
}


@media (max-width: 768px) {

    .hamburger {
        display: block;
        font-size: 30px;
        background: none;
        border: none;
        color: #000;
        cursor: pointer;
        margin-left: auto;
    }


    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px 30px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu.show {
        display: flex;
    }

    /* Dropdown en móviles */
    .dropdown-menu {
        position: static;
        display: none;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding-left: 15px;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    li.dropdown>a::after {
        content: " ▼";
        font-size: 12px;
    }

    footer {
        font-size: 0.9em;
        padding: 15px;
        gap: 10px;

    }

}

@media (max-width: 900px) {

    .hero,
    .section {
        flex-direction: column;
    }

    .hero-img,
    .section-img,
    .hero-text,
    .section-text {
        flex: 1 1 100%;
    }
}

/* Estilos para la galería de imágenes en la sección '¿Por qué confiar en nosotros?' */
.porque-galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 32px;
}
.porque-galeria img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  background: #fff;
  transition: transform 0.2s;
}
.porque-galeria img:hover {
  transform: scale(1.05);
}

.porque-titulo {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 32px;
  color: #386f63;
  font-weight: 800;
}