/* ========================================
   ESTILOS INSTITUTO CIMA
   ======================================== */

/* ========== VARIABLES Y COLORES ========== */
:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #00c4ff;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

/* ========== RESET Y ESTILOS GLOBALES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

/* ========== CONTENEDOR ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-primary);
    padding-left: 0;
    margin-left: flex;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.logo i {
    color: var(--accent-color);
}

/* Navegación */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Menú Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    gap: 5px;
    z-index: 101;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========== HERO / BIENVENIDA ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.7) 0%, rgba(42, 82, 152, 0.7) 100%), url('imagenes/Logo/logo1.jpg') center/50% no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: slideInDown 0.8s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease 0.2s both;
}

/* ========== BOTONES ========== */
.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #00a8d8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ========== SECCIONES ========== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Secciones alternadas */
.section:nth-child(even) {
    background-color: var(--bg-light);
}

/* ========== QUIÉNES SOMOS ========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== HISTORIA ========== */
.history {
    background: var(--bg-light);
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    padding: 2rem 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.history-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
}

.history-item:nth-child(even) {
    direction: rtl;
}

.history-item:nth-child(even) > * {
    direction: ltr;
}

.history-date {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-primary);
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 2;
    position: relative;
}

.history-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.history-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.history-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

.history-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ========== MISIÓN Y VISIÓN ========== */
.mission-vision {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.card h3 {
    font-size: 1.8rem;
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    line-height: 1.8;
}

/* ========== VALORES ========== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.value-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== NIVELES EDUCATIVOS ========== */
.niveles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.nivel-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 5px solid var(--accent-color);
}

.nivel-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.nivel-icon {
    font-size: 3rem;
    color: var(--accent-color);
    padding: 2rem;
    text-align: center;
    background-color: var(--bg-light);
}

.nivel-card h3 {
    font-size: 1.8rem;
    padding: 1.5rem 2rem 0;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.nivel-edad {
    padding: 0 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.nivel-descripcion {
    padding: 0 2rem 2rem;
}

.nivel-descripcion p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.nivel-features {
    list-style: none;
}

.nivel-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nivel-features i {
    color: var(--success-color);
    font-weight: bold;
}

/* ========== GALERÍA ESTILO SANFORD ========== */

/* Contenedor principal de galería */
.gallery-featured {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Filas de galería */
.gallery-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.gallery-row.gallery-reverse {
    grid-template-columns: 1fr 1fr 2fr;
}

/* Items de galería */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Imagen de galería */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    background-color: var(--bg-light);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* Items grandes */
.gallery-large {
    min-height: 350px;
    grid-row: span 1;
    justify-content: center;
}

.gallery-large .gallery-img {
    height: auto;
    max-height: 350px;
}

/* Items pequeños */
.gallery-small {
    min-height: 180px;
    justify-content: center;
}

/* Títulos y descripción en galería */
.gallery-item h4 {
    padding: 1.2rem;
    background: var(--bg-white);
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-item p {
    padding: 0 1.2rem 1.2rem;
    background: var(--bg-white);
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Grid de actividades complementarias */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.activity-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: auto;
    min-height: 250px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-light);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.activity-img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    transition: transform 0.4s ease;
    background-color: var(--bg-light);
}

.activity-card:hover .activity-img {
    transform: scale(1.08);
}

.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.7) 0%, rgba(42, 82, 152, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.activity-card:hover .activity-overlay {
    opacity: 1;
}

.activity-overlay h3 {
    color: var(--bg-white);
    font-size: 1.3rem;
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 600;
}

/* ========== UBICACIÓN ========== */
.location {
    background: var(--bg-light);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-item {
    display: flex;
    gap: 1.5rem;
}

.location-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    min-width: 30px;
}

.location-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
}

.location-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.location-item a {
    color: var(--accent-color);
    font-weight: 500;
}

.location-item a:hover {
    color: var(--primary-color);
}

.location-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ========== FORMULARIO ========== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 196, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.contact-form button:hover {
    background-color: #031f9d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideInDown 0.3s ease;
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.modal-content > p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* ========== BOTÓN WHATSAPP FLOTANTE ========== */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #1fb55f;
    transform: scale(1.1);
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.95) 0%, rgba(42, 82, 152, 0.95) 100%), url('imagenes/Logo_Preescolar/logo_preescolar1.jpg') right bottom/400px no-repeat;
    color: var(--bg-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.logo-footer {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
    opacity: 0.9;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.footer-section a {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--bg-white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* ========== ANIMACIONES ========== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablets (768px y menos) */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        justify-content: center;
    }

    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-white);
        padding: 2rem;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 400px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-map {
        min-height: 300px;
    }

    .history-timeline::before {
        left: 30px;
    }

    .history-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-left: 80px;
    }

    .history-item:nth-child(even) {
        direction: ltr;
        margin-left: 80px;
    }

    .history-date {
        position: absolute;
        left: 0;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        padding: 0;
        margin-top: -2rem;
    }

    .history-content {
        padding: 1.5rem;
    }

    .history-content h3 {
        font-size: 1.2rem;
    }

    .history-content p {
        font-size: 0.85rem;
    }
}

/* Móviles (480px y menos) */
@media (max-width: 480px) {
    .logo {
        margin-left: 0;
    }

    .logo-img {
        height: 50px;
    }

    .hero {
        min-height: 400px;
        background-attachment: scroll;
        background-size: 60% !important;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .card,
    .value-card,
    .nivel-card {
        padding: 1.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav {
        top: 60px;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .activity-card {
        height: 200px;
    }

    .gallery-item h4 {
        font-size: 1rem;
        padding: 1rem;
    }

    .gallery-row,
    .gallery-row.gallery-reverse {
        grid-template-columns: 1fr !important;
    }

    .gallery-large,
    .gallery-small {
        min-height: 250px !important;
    }

    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form {
        padding: 1.5rem;
    }

    .history-timeline::before {
        left: 25px;
    }

    .history-item {
        margin-left: 70px;
    }

    .history-date {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .history-content {
        padding: 1rem;
    }

    .history-content h3 {
        font-size: 1.1rem;
    }

    .history-content p {
        font-size: 0.8rem;
    }
}

/* Pantallas pequeñas (menos de 350px) */
@media (max-width: 350px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .logo span {
        display: none;
    }
}
