/* Variables de colores - Cobas Taekwondo */
:root {
    --primary: #847122;
    --secondary: #b40202;
    --accent: #d4b456;
    --light: #f8f6f0;
    --dark: #2c2a24;
    --text: #3a3629;
    --text-light: #666666;
    --white: #ffffff;
    --gray: #e8e6df;
    
    --font-primary: 'Inter', sans-serif;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Header y Navegación */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
    
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 0;
    margin-left: -75px;
}

.logo-img {
    width: 60px;  /* Ajusta según el tamaño de tu logo */
    height: 60px;
    object-fit: contain;
    
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(18, 18, 18, 0.6), rgba(180, 2, 2, 0.4)), url('../images/hero-bg-escritorio.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Sección Quiénes Somos */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Sección Cursos */
.courses {
    background-color: var(--light);
}

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

.course-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-img {
    height: 200px;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-img img {
    transform: scale(1.1);
}

.course-info {
    padding: 20px;
}

.course-info h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Sección Horarios Mejorada */
.schedule {
    background-color: var(--white);
}

.schedule-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

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

.schedule-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.schedule-card.featured {
    border-color: var(--accent);
    position: relative;
    transform: scale(1.05);
}

.schedule-card.featured::before {
    content: 'Más Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.schedule-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.schedule-header h3 {
    margin-bottom: 5px;
    color: var(--primary);
}

.age-range {
    color: var(--text-light);
    font-size: 0.9rem;
}

.schedule-times {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.time-slot:hover {
    background: var(--gray);
}

.day {
    font-weight: 600;
    color: var(--primary);
}

.time {
    color: var(--secondary);
    font-weight: 500;
}

/* Sección Maestros antigua */
/* .instructors {
    background-color: var(--light);
}

.instructor-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.instructor-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.instructor-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid var(--light);
}

.instructor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.instructor-card:hover .instructor-img img {
    transform: scale(1.1);
}

.instructor-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.instructor-rank {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 15px;
}

.instructor-bio {
    color: var(--text-light);
} */



/* Sección Maestro */
.master-section {
    background: linear-gradient(135deg, 
        rgba(248, 246, 240, 0.95) 0%, 
        rgba(255, 255, 255, 1) 100%);
    
    position: relative;
    overflow: hidden;
}

.master-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    
}
.section-header{
    text-align: center;
}

/* Tarjeta del maestro */
.master-card {
    max-width: 1100px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.master-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(132, 113, 34, 0.1);
}

/* Imagen */
.master-image {
    position: relative;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    overflow: hidden;
}

.master-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    opacity: 0.95;
}

.master-card:hover .master-image img {
    transform: scale(1.05);
}

.master-rank {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.master-rank .dan {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.master-rank .kukkiwon {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Información */
.master-info {
    padding: 60px 40px;
    background: white;
}

.master-name {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.2;
}

.master-title {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.master-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Descripción */
.master-description {
    margin-top: 40px;
}

.master-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
    padding: 20px;
    background: rgba(248, 246, 240, 0.5);
    border-radius: 15px;
    border-left: 4px solid var(--primary);
    margin-bottom: 30px;
    position: relative;
}

.master-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(132, 113, 34, 0.1);
    font-family: serif;
}

.master-bio {
    margin-bottom: 30px;
}

.master-bio p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Estadísticas */
.master-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.master-stats .stat {
    text-align: center;
    min-width: 100px;
    flex: 1;
}

.master-stats .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.master-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Redes sociales */
.master-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(132, 113, 34, 0.1);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(132, 113, 34, 0.3);
}

/* Mensaje final */
.master-message {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(132, 113, 34, 0.1);
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.message-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.message-content p {
    font-size: 1.2rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .master-card {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 700px;
    }
    
    .master-image {
        min-height: 400px;
    }
    
    .master-info {
        padding: 50px 40px;
    }
    
    .master-name {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .master-section {
        padding: 80px 0;
    }
    
    .master-info {
        padding: 40px 30px;
    }
    
    .master-name {
        font-size: 2.2rem;
    }
    
    .master-title {
        font-size: 1.1rem;
    }
    
    .master-quote {
        font-size: 1.1rem;
        padding: 20px 15px;
    }
    
    .master-bio p {
        font-size: 1rem;
    }
    
    .master-stats {
        gap: 20px;
    }
    
    .master-stats .stat-number {
        font-size: 2rem;
    }
    
    .message-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .message-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .master-info {
        padding: 30px 20px;
    }
    
    .master-name {
        font-size: 2rem;
    }
    
    .master-rank {
        left: 20px;
        bottom: 20px;
        padding: 12px 20px;
    }
    
    .master-rank .dan {
        font-size: 1.5rem;
    }
    
    .master-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .master-stats .stat {
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 10px;
    }
    
    .master-stats .stat-number {
        font-size: 1.8rem;
        min-width: 80px;
    }
    
    .master-social {
        justify-content: center;
    }
    
    .master-message {
        padding: 25px 20px;
    }
    
    .message-content p {
        font-size: 1rem;
    }
}



/* Sección FAQ Mejorada */
.faq {
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 20px;
    background-color: var(--light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--gray);
}

.question-text h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.question-icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: var(--transition);
}

.faq-item.active .question-icon {
    background: var(--secondary);
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

/* Sección Contacto */
.contact {
    background-color: var(--light);
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(132, 113, 34, 0.1);
}

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

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3,
.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-column p, .footer-column a {
    color: #bbb;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--accent);
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}



/* Form Messages Styles */
.form-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    border-left: 4px solid #28a745;
}

.form-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    border-left: 4px solid #dc3545;
}

.form-success h4,
.form-error h4 {
    margin-bottom: 10px;
    color: inherit;
}

.form-success p,
.form-error p {
    margin-bottom: 5px;
}

.form-error small {
    opacity: 0.8;
    font-size: 0.9em;
}

/* Loading state */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

button[type="submit"]:disabled::after {
    content: ' ⏳';
}



/* Carrusel Styles */
.carousel-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 5s ease;
}

.carousel-slide.active img {
    transform: scale(1.05);
}

/* Flechas de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--secondary);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Indicadores (puntos) */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.3);
}



/* 888888888888888888888888888888888888888888888888888888888888888888888888888888888 */
/* Sección Logros Elegante */
.achievements {
    background: linear-gradient(135deg, 
        rgba(248, 246, 240, 0.95) 0%, 
        rgba(255, 255, 255, 1) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    
}

.achievements .section-header h2 {
    color: var(--primary);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.achievements .section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid de logros */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

/* Tarjeta de logro */
.achievement-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3px;
    position: relative;
    box-shadow: 0 10px 30px rgba(132, 113, 34, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(132, 113, 34, 0.1);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary), 
        var(--secondary));
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* .achievement-card:hover::before {
    opacity: 1;
} */

.achievement-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(132, 113, 34, 0.15);
    border-color: rgba(132, 113, 34, 0.2);
}

.achievement-card-inner {
    background: var(--white);
    border-radius: 18px;
    padding: 35px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Icono */
.achievement-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
}

.achievement-icon .icon {
    font-size: 3rem;
    position: relative;
    z-index: 2;
    display: block;
    text-align: center;
    line-height: 80px;
}

.achievement-icon .icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, 
        rgba(132, 113, 34, 0.1), 
        rgba(180, 2, 2, 0.05));
    border-radius: 50%; */
    z-index: 1;
    transition: transform 0.3s ease;
}

.achievement-card:hover .icon-bg {
    transform: scale(1.1);
}

/* Contenido */
.achievement-content {
    text-align: center;
    flex: 1;
}

.achievement-number {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.achievement-number .counter {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
}

.achievement-number .plus {
    font-size: 2.5rem;
    color: var(--secondary);
    font-weight: 600;
    line-height: 1;
    margin-left: -5px;
}

.achievement-title {
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.achievement-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Footer de tarjeta */
.achievement-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(132, 113, 34, 0.1);
    text-align: center;
}

.footer-text {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Galería Simple y Cuadrada */
.gallery-simple {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.gallery-header .highlight {
    color: var(--secondary);
    position: relative;
}

.gallery-header .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(180, 2, 2, 0.15);
    z-index: -1;
    border-radius: 4px;
}

.gallery-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filtros Simples */
.gallery-filters-simple {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(132, 113, 34, 0.1);
}

.filter-btn-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid rgba(132, 113, 34, 0.2);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: auto;
    flex: 1;
    max-width: 200px;
    justify-content: center;
}

.filter-btn-simple:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(132, 113, 34, 0.1);
}

.filter-btn-simple.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(132, 113, 34, 0.2);
}

.filter-icon {
    font-size: 1.1rem;
}

/* Grid Cuadrado - RESPONSIVE */
.gallery-grid-square {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* ESTILOS BASE PARA TODAS LAS FOTOS */
.gallery-item-square {
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* Fotos ocultas inicialmente */
.gallery-item-square.hidden-photo {
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
}

/* Cuando se muestran las fotos ocultas */
.gallery-item-square:not(.hidden-photo) {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.square-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
}

.square-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover efectos */
.gallery-item-square:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(132, 113, 34, 0.15);
}

.gallery-item-square:hover .square-content img {
    transform: scale(1.05);
}

/* Overlay */
.square-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    pointer-events: none;
}

.gallery-item-square:hover .square-overlay {
    opacity: 1;
}

.overlay-info {
    transform: translateY(10px);
    transition: transform 0.3s ease;
    color: white;
    width: 100%;
    pointer-events: none;
}

.gallery-item-square:hover .overlay-info {
    transform: translateY(0);
}

.overlay-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: white;
}

.overlay-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.photo-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Contador */
.gallery-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    /* background: white;
    border-radius: 12px; */
    
    margin-top: 30px;
}

.counter-text {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.counter-text span {
    color: var(--primary);
    font-weight: 700;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(132, 113, 34, 0.3);
}

/* Estados del botón */
.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-btn.loading svg {
    animation: spin 1s linear infinite;
}

.load-more-btn.hidden {
    display: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animación para fotos nuevas */
.photo-appear {
    animation: photoFadeIn 0.6s ease forwards;
}

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

/* Lightbox SIMPLIFICADO */
.simple-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.simple-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.lightbox-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-image-container {
    width: 100%;
    max-width: 800px;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 25px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .gallery-grid-square {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-grid-square {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-simple {
        padding: 60px 0 80px;
    }
    
    .gallery-header h2 {
        font-size: 2.2rem;
    }
    
    .filter-btn-simple {
        min-width: 140px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* MÓVIL - 2 COLUMNAS */
@media (max-width: 768px) {
    .gallery-grid-square {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery-header h2 {
        font-size: 2rem;
    }
    
    .gallery-description {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .gallery-filters-simple {
        padding: 15px;
        gap: 8px;
    }
    
    .filter-btn-simple {
        flex: 1 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .overlay-info h3 {
        font-size: 1rem;
    }
    
    .overlay-info p {
        font-size: 0.8rem;
    }
    
    .gallery-counter {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .lightbox-image-container {
        height: 60vh;
        padding: 10px;
    }
    
    .lightbox-category {
        font-size: 1rem;
        padding: 8px 20px;
    }
}

@media (max-width: 480px) {
    .gallery-grid-square {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-simple {
        padding: 40px 0 60px;
    }
    
    .gallery-header h2 {
        font-size: 1.8rem;
    }
    
    .square-overlay {
        padding: 15px;
    }
    
    .overlay-info h3 {
        font-size: 0.9rem;
    }
    
    .photo-category {
        font-size: 0.75rem;
    }
    
    .lightbox-image-container {
        height: 50vh;
    }
}

/* Pantallas grandes */
@media (min-width: 1200px) {
    .gallery-grid-square {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}
