/* ========================================
   NOSOTROS PAGE - SIMPLE & CLEAN
   ======================================== */

/* Hero Section */
.about-hero {
    background: var(--gradient-primary);
    padding: 8rem 2rem 4rem;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.about-hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--white);
    opacity: 0.95;
    line-height: 1.6;
}

/* Main Content */
.about-content {
    background: var(--canvas);
    padding: 6rem 2rem;
}

.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Mission & Vision Container */
.mission-vision-container {
    margin-bottom: 6rem;
}

.mission-section,
.vision-section {
    margin-bottom: 4rem;
}

.content-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 400px;
    border: 1px solid rgba(0, 184, 163, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.content-card.reverse {
    direction: rtl;
}

.content-card.reverse .text-content,
.content-card.reverse .image-content {
    direction: ltr;
}

.text-content {
    padding: 3rem;
}

.text-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.text-content p:last-child {
    margin-bottom: 0;
}

/* Sección de imagen - Simplificada para evitar conflictos */
.image-content {
    height: 400px;
    background: #f0f0f0;
    overflow: hidden;
    display: block;
    position: relative;
}

.image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    visibility: visible;
}

.content-card:hover .image-content img {
    transform: scale(1.05);
}

/* Gallery Section */
.gallery-section {
    text-align: center;
}

.gallery-header {
    margin-bottom: 3rem;
}

.gallery-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.gallery-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid rgba(0, 184, 163, 0.1);
}

.gallery-main {
    position: relative;
}

.main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-caption {
    background: var(--white);
    padding: 2rem;
    text-align: center;
}

.image-caption h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.image-caption p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    background: var(--canvas);
}

.thumbnail {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: var(--white);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover img,
.thumbnail.active img {
    opacity: 1;
    transform: scale(1.1);
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--turquoise);
    background: rgba(0, 184, 163, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-hero {
        padding: 7rem 2rem 3rem;
    }
    
    .content-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .content-card.reverse {
        direction: ltr;
    }
    
    .image-content {
        height: 300px;
        order: 1;
    }
    
    .text-content {
        order: 2;
        padding: 2.5rem;
    }
    
    .main-image {
        height: 400px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 6rem 1rem 3rem;
        margin-top: 70px;
    }
    
    .about-content {
        padding: 4rem 1rem;
    }
    
    .mission-vision-container {
        margin-bottom: 4rem;
    }
    
    .mission-section,
    .vision-section {
        margin-bottom: 3rem;
    }
    
    .text-content {
        padding: 2rem;
    }
    
    .text-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .text-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .image-content {
        height: 250px;
    }
    
    .gallery-header h2 {
        font-size: 2rem;
    }
    
    .gallery-header {
        margin-bottom: 2rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .image-caption {
        padding: 1.5rem;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Navbar adjustments */
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 5rem 1rem 2rem;
        margin-top: 60px;
    }
    
    .about-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .about-hero p {
        font-size: 1rem;
    }
    
    .about-content {
        padding: 3rem 1rem;
    }
    
    .mission-vision-container {
        margin-bottom: 3rem;
    }
    
    .mission-section,
    .vision-section {
        margin-bottom: 2rem;
    }
    
    .content-card {
        border-radius: 16px;
    }
    
    .text-content {
        padding: 1.5rem;
    }
    
    .text-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .text-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .image-content {
        height: 200px;
    }
    
    .gallery-header h2 {
        font-size: 1.8rem;
    }
    
    .gallery-header p {
        font-size: 1rem;
    }
    
    .gallery-container {
        border-radius: 16px;
    }
    
    .image-caption {
        padding: 1rem;
    }
    
    .image-caption h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .image-caption p {
        font-size: 0.9rem;
    }
    
    .main-image {
        height: 250px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }
    
    .thumbnail {
        border-radius: 8px;
        overflow: hidden;
    }
    
    /* Navbar mobile adjustments */
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Placeholders for missing images */
.image-content:empty::before {
    content: 'Imagen del Centro Estético';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    color: white;
    font-size: 1.1rem;
    text-align: center;
}

/* Fallback para imágenes rotas */
.image-content img,
.main-image img,
.thumbnail img {
    background: var(--gradient-secondary);
}

.image-content img::before,
.main-image img::before,
.thumbnail img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    text-align: center;
    z-index: 1;
}

/* Logo fixes - Asegurar que se vean correctamente */
.logo {
    display: flex;
    align-items: center;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    max-height: 70px;
    height: auto;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    height: 80px;
}

.footer-logo img {
    max-height: 80px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .logo {
        height: 70px;
    }
    
    .logo img {
        max-height: 70px;
    }
    
    .footer-logo {
        height: 80px;
        justify-content: center;
    }
    
    .footer-logo img {
        max-height: 80px;

    }
}

@media (max-width: 480px) {
    .logo {
        height: 70px;
    }
    
    .logo img {
        max-height: 50px;
        max-width: 120px;
    }
    
    .footer-logo {
        height: 80px;
    }
    
    .footer-logo img {
        max-height: 80px;
    }
}

/* Smooth transitions */
.content-card,
.thumbnail,
.main-image img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading states */
.main-image img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image img.loaded {
    opacity: 1;
}

/* Animation for scroll-in effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-container {
    animation: fadeInUp 0.8s ease forwards;
}