/* ========================================
   ACERCA DE - Centro de Fisioterapia
   ======================================== */

/* Reset basico */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #0643be;
    --color-primary-dark: #cf0e0e;
    --color-dark: #1a1a2e;
    --color-white: #ffffff;
    --color-gray-100: #f7f8fa;
    --color-gray-200: #e8eaef;
    --color-gray-500: #6b7280;
    --color-gray-700: #374151;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- SECCION PRINCIPAL ---- */
.about-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0 0 0;
    background-color: var(--color-gray-100);
}

/* Fondo con opacidad */
.about-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 420px;
    background-image: url('../img/backgraund.png');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 0;
}

/* ---- LOGO ---- */
.about-logo-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.about-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    padding: 12px 28px;
    border-radius: 60px;
    box-shadow: 0 8px 32px rgba(228, 4, 4, 0.18);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

/* ---- CONTENIDO PRINCIPAL (2 columnas) ---- */
.about-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

/* ---- COLUMNA IMAGEN ---- */
.about-image-col {
    flex: 0 0 48%;
    max-width: 48%;
}

.image-3d-wrapper {
    position: relative;
    border-radius: 16px;
}

/* Capa de sombra para efecto 3D */
.image-shadow-layer {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 16px;
    opacity: 0.35;
    z-index: 0;
    transition: all 0.4s ease;
}

.image-3d-wrapper:hover .image-shadow-layer {
    top: 20px;
    left: 20px;
    opacity: 0.5;
}

.image-main {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.image-3d-wrapper:hover .image-main {
    transform: translateY(-4px);
}

.image-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.image-3d-wrapper:hover .image-main img {
    transform: scale(1.03);
}

/* Barra de acento decorativa */
.image-accent-bar {
    position: absolute;
    bottom: -8px;
    left: 40px;
    right: 40px;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 0 0 6px 6px;
    z-index: 2;
}

/* ---- COLUMNA TEXTO ---- */
.about-text-col {
    flex: 1;
    padding-top: 10px;
}

.badge-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary);
    background: rgba(42, 138, 138, 0.1);
    border: 1.5px solid var(--color-primary);
    padding: 6px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.15;
    margin-bottom: 28px;
}

/* Descripcion con borde izquierdo */
.about-description {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.desc-border {
    flex-shrink: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary), transparent);
    border-radius: 4px;
}

.about-description p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-500);
}

/* ---- TARJETAS DE ESTADISTICAS ---- */
.stats-row {
    display: flex;
    gap: 20px;
}

.stat-card {
    flex: 1;
    background: var(--color-primary);
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    box-shadow: 0 8px 28px rgba(42, 138, 138, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(42, 138, 138, 0.45);
}

.stat-card:hover::before {
    transform: scale(1.5);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
}

/* ========================================
   CARRUSEL
   ======================================== */
.carousel-section {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.carousel-heading {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 32px;
}

.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06);
}

.carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
}

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

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

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 26, 46, 0.85));
    padding: 40px 32px 28px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

/* Botones del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--color-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn-prev {
    left: 16px;
}

.carousel-btn-next {
    right: 16px;
}

/* Indicadores (dots) */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

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

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* ========================================
   ANIMACION DE ENTRADA
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .about-section {
        padding: 60px 0 0 0;
    }

    .about-content {
        gap: 40px;
        padding: 0 30px 50px;
    }

    .about-title {
        font-size: 2.1rem;
    }

    .image-main img {
        height: 360px;
    }

    .stat-number {
        font-size: 2.6rem;
    }

    .carousel-slide img {
        height: 340px;
    }
}

/* ========================================
   RESPONSIVE - TABLET SMALL (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    .about-section {
        padding: 50px 0 0 0;
    }

    .about-bg-overlay {
        height: 300px;
    }

    .about-content {
        flex-direction: column;
        padding: 0 24px 40px;
        gap: 36px;
    }

    .about-image-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .image-main img {
        height: 320px;
    }

    .about-title {
        font-size: 2rem;
    }

    .stats-row {
        gap: 16px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .carousel-section {
        padding: 0 24px 60px;
    }

    .carousel-slide img {
        height: 280px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   RESPONSIVE - MOVIL (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .about-section {
        padding: 40px 0 0 0;
    }

    .about-logo {
        padding: 10px 20px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .about-logo-wrapper {
        margin-bottom: 32px;
    }

    .about-content {
        padding: 0 16px 32px;
        gap: 28px;
    }

    .image-shadow-layer {
        top: 10px;
        left: 10px;
    }

    .image-main img {
        height: 240px;
    }

    .image-accent-bar {
        left: 20px;
        right: 20px;
    }

    .badge-label {
        font-size: 0.65rem;
        padding: 5px 14px;
    }

    .about-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .about-description {
        margin-bottom: 28px;
        gap: 14px;
    }

    .about-description p {
        font-size: 0.9rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 14px;
    }

    .stat-card {
        padding: 24px 20px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .carousel-section {
        padding: 0 16px 50px;
    }

    .carousel-heading {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }

    .carousel-slide img {
        height: 220px;
    }

    .slide-caption {
        font-size: 0.95rem;
        padding: 30px 20px 20px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }
}
