/* ============================================================================
   ESTILOS GENERALES Y RESET
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ============================================================================
   HEADER / CABECERA
   ============================================================================ */

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.header-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ============================================================================
   NAVEGACIÓN
   ============================================================================ */

.navbar {
    background-color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-link {
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 5px;
}

.nav-link:hover {
    background-color: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* ============================================================================
   HERO SECTION / SECCIÓN PRINCIPAL
   ============================================================================ */

.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================================================
   SECCIONES GENERALES
   ============================================================================ */

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* ============================================================================
   CARACTERÍSTICAS (GRID DE CARDS)
   ============================================================================ */

.caracteristicas {
    background-color: white;
    margin-bottom: 40px;
}

.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.caracteristica-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.caracteristica-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.caracteristica-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.caracteristica-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #667eea;
}

.caracteristica-card p {
    color: #666;
    line-height: 1.6;
}

/* ============================================================================
   UBICACIÓN Y MAPA
   ============================================================================ */

.ubicacion {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.mapa-container {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mapa-container iframe {
    display: block;
}

.ubicacion-texto {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    margin-top: 20px;
    font-weight: 600;
}

/* ============================================================================
   GALERÍA DE FOTOS
   ============================================================================ */

.galeria {
    background-color: white;
}

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

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 250px;
    cursor: pointer;
}

.galeria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-img {
    transform: scale(1.1);
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay p {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ============================================================================
   RESEÑAS / OPINIONES
   ============================================================================ */

.resenas {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.resenas .section-title,
.resenas .section-description {
    color: white;
}

.resenas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.resena-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.resena-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.estrellas {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.resena-texto {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    font-style: italic;
}

.resena-autor {
    font-weight: 600;
    margin-bottom: 5px;
}

.resena-fecha {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================================================================
   CONTACTO Y BOTONES
   ============================================================================ */

.contacto {
    background-color: white;
    text-align: center;
}

.botones-contacto {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.boton {
    padding: 15px 35px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.boton-contacto {
    background-color: #667eea;
    color: white;
}

.boton-contacto:hover {
    background-color: #5568d3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.boton-whatsapp {
    background-color: #25d366;
    color: white;
}

.boton-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ============================================================================
   FORMULARIO DE CONTACTO
   ============================================================================ */

.formulario-contacto {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.formulario-contacto h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

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

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.boton-enviar {
    background-color: #667eea;
    color: white;
    width: 100%;
    margin-bottom: 10px;
}

.boton-enviar:hover {
    background-color: #5568d3;
}

.boton-cancelar {
    background-color: #ddd;
    color: #333;
    width: 100%;
}

.boton-cancelar:hover {
    background-color: #ccc;
}

/* ============================================================================
   PIE DE PÁGINA / FOOTER
   ============================================================================ */

.footer {
    background-color: #2c3e50;
    color: white;
    padding-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px 40px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #667eea;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #667eea;
    margin-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #667eea;
    color: white;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
}

/* ============================================================================
   RESPONSIVE DESIGN / DISEÑO RESPONSIVO
   ============================================================================ */

/* Tablets (hasta 768px) */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.8rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .navbar {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .hero {
        height: 350px;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .caracteristicas-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .caracteristica-card {
        padding: 20px;
    }

    .caracteristica-icon {
        font-size: 2.5rem;
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .galeria-item {
        height: 200px;
    }

    .resenas-grid {
        grid-template-columns: 1fr;
    }

    .botones-contacto {
        flex-direction: column;
    }

    .boton {
        width: 100%;
    }

    .footer-content {
        gap: 30px;
    }
}

/* Móviles (hasta 480px) */
@media (max-width: 480px) {
    .header {
        padding: 25px 15px;
    }

    .header-title {
        font-size: 1.4rem;
    }

    .header-subtitle {
        font-size: 0.9rem;
    }

    .navbar {
        gap: 10px;
        padding: 10px 15px;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
        white-space: nowrap;
    }

    .hero {
        height: 250px;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    section {
        padding: 30px 15px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .caracteristicas-grid {
        grid-template-columns: 1fr;
    }

    .caracteristica-card {
        padding: 15px;
    }

    .caracteristica-icon {
        font-size: 2rem;
    }

    .caracteristica-card h3 {
        font-size: 1.1rem;
    }

    .caracteristica-card p {
        font-size: 0.95rem;
    }

    .mapa-container {
        min-height: 300px;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .galeria-item {
        height: 180px;
    }

    .galeria-overlay p {
        font-size: 1rem;
    }

    .resena-card {
        padding: 15px;
    }

    .resena-texto {
        font-size: 0.95rem;
    }

    .estrellas {
        font-size: 1rem;
    }

    .boton {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .formulario-contacto {
        padding: 20px 15px;
    }

    .formulario-contacto h3 {
        font-size: 1.3rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 16px; /* Evita zoom en iOS */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px 30px;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

/* ============================================================================
   ANIMACIONES Y EFECTOS ESPECIALES
   ============================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.caracteristica-card,
.resena-card,
.galeria-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Efecto de carga escalonada */
.caracteristica-card:nth-child(1) { animation-delay: 0.1s; }
.caracteristica-card:nth-child(2) { animation-delay: 0.2s; }
.caracteristica-card:nth-child(3) { animation-delay: 0.3s; }
.caracteristica-card:nth-child(4) { animation-delay: 0.4s; }
.caracteristica-card:nth-child(5) { animation-delay: 0.5s; }
.caracteristica-card:nth-child(6) { animation-delay: 0.6s; }
