/* Variables */
:root {
    --primary-color: #616588;
    --secondary-color: #9096A2;
    --light-color: #f5eef8;
    --dark-color: #616588;
    --white: #E4CED0;
    --gray: #ecf0f1;
    --blanc:#ffffff;
    
}

/* Definición de las animaciones */
@keyframes slideInFromBottom {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    
}

body {
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Header */
header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Navegación */
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li {
    margin-left: 0;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Menú hamburguesa para móviles */
/* Estilo base del botón */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    color: var(--primary-color);
}

/* Hero section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(97, 101, 136, 0.5)),
                url('../images/fondo1.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanc);
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInFromBottom 1s ease-out;
    animation-fill-mode: both;
}

.hero-content h3{
    animation: slideInFromBottom 1s ease-out;
    animation-fill-mode: both;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInFromBottom 1s ease-out 0.3s; /* 0.3s de retraso */
    animation-fill-mode: both;
}

/* Botones */
.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Secciones */
section {
    padding: 5rem 3rem;
    min-height: 100vh;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--primary-color);
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Sobre nosotros */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
}

.about-image {
    position: relative;
    width: 100%;
    height: auto;
    padding-bottom: 90%; /* Proporción 4:5 (ajustable) */
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

/* Galería */
.galeria {
    background-color: var(--white);
    padding: 5rem 3rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.galeria-item:hover {
    transform: translateY(-5px);
}

.galeria-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

/* Formulario de contacto */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.map-responsive { 
  /*margin-top: none;*/
  position: relative;
  overflow: hidden;
  padding-bottom: 60%; /* 16:9 ratio */
  height: 450px;
}
.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.whatsapp-float,
.phone-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 80px;
    right: 20px;
    background-color: var(--dark-color);
    color: #ED989F;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 100;
    /* Agregar estas propiedades para centrar */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.phone-float {
    bottom: 150px;
    background-color: var(--dark-color);
    /* Mantener las mismas propiedades de centrado */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ajustar el tamaño de los íconos si es necesario */
.whatsapp-float i,
.phone-float i {
    font-size: 24px; /* Puedes ajustar este valor según necesites */
}

.whatsapp-float:hover {
    animation: none;
    transform: scale(1.1);
}

.phone-float:hover {
    animation: none;
    transform: scale(1.1);
}
/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.social-links a{
    color: var(--white);
    margin: 0 1rem;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {

    .hero {
        background: linear-gradient(rgba(97, 101, 136, 0.5)),
                url('../images/fondo1.png') no-repeat center;;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .about {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: 2;
        height: 300px;
    }
    
    /* Ocultar navegación normal y mostrar botón hamburguesa */
    nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    opacity: 0; /* Inicia transparente */
    transform: translateY(-20px); /* Inicia ligeramente arriba */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Transición suave */
    z-index: 999; /* Asegúrate de que esté por encima de otros elementos */
    }
    
    nav ul.show {
    display: flex;
    opacity: 1; /* Opacidad final */
    transform: translateY(0); /* Posición final */
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .menu-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    }

    nav ul.show li {
    animation: fadeInItem 0.4s ease forwards;
    opacity: 0; /* Inicialmente ocultos */
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .galeria-item img {
        height: 250px;
    }

@keyframes fadeInItem {
    to {
        opacity: 1;
    }
    }

/* Retraso progresivo para cada item */
nav ul.show li:nth-child(1) { animation-delay: 0.1s; }
nav ul.show li:nth-child(2) { animation-delay: 0.2s; }
nav ul.show li:nth-child(3) { animation-delay: 0.3s; }
nav ul.show li:nth-child(4) { animation-delay: 0.4s; }
nav ul.show li:nth-child(5) { animation-delay: 0.5s; }

.map-responsive{
    margin-top: 2rem;
}
}

@media (max-width: 480px) {
    section {
        padding: 3rem 1rem;
    }
    
    .hero {
        height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}