/* assets/css/about-section.css */

/* --- TÍTULOS --- */
.about-title {
    z-index: 2;
    font-size: 3rem;
    width: 80%;
    line-height: 4rem;
    max-width: 900px;
    font-weight: 600;
    text-align: center;
    margin: 0 auto;
}

.about-subtitle {
    font-size: 1.5rem;
    width: 80%;
    max-width: 900px;
    font-weight: 400;
    text-align: center;
    margin: 0 auto;
}

#acerca-de-container {
    width: 100%;
    padding: 0 20px;
}

/* --- CONTENEDOR PRINCIPAL (La "Tabla") --- */
.about-container {
    margin-top: 60px;
    width: 100%;
    max-width: 1200px; /* Ancho máximo para que no se estire infinito */

    /* Borde unificado para evitar líneas rotas */
    border: var(--border-strong);
    border-radius: var(--border-radius);
    box-shadow: 10px 10px 0 var(--color-gray);
    background-color: var(--color-white);

    display: flex;
    flex-direction: row;
    overflow: hidden; /* Asegura que los hijos no se salgan de las curvas */
}

/* --- COLUMNA IZQUIERDA (Menú) --- */
.options-wrapper {
    /* Ancho fijo para que no baile */
    width: 350px;
    flex-shrink: 0; /* No permitimos que se achique */

    /* Línea divisoria vertical */
    border-right: var(--border-strong);
    background-color: #f9f9f9;

    /* Quitamos bordes viejos */
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
}

/* Opciones individuales */
.about-option {
    width: 100%;
    height: 120px; /* Altura fija */
    border-bottom: var(--border-strong);
    cursor: pointer;
    display: flex; /* Para centrar texto verticalmente */
    align-items: center;
    padding: 0 1.5rem;
    transition: all var(--transition-speed) ease;
}

/* Quitamos el borde del último botón para que no choque con el fondo */
.about-option:last-child {
    border-bottom: none !important;
}

.about-option > p {
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.2s ease;
    margin: 0;
}

.about-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.about-option.active {
    background-color: var(--accent-color);
    color: var(--color-white);
}

.about-option.active p {
    transform: translateX(5px); /* Efecto sutil de movimiento */
}

/* --- COLUMNA DERECHA (Contenido) --- */
/* El div que envuelve a los paneles (sin clase en tu HTML, lo atacamos por contexto) */
.about-container > div:last-child {
    flex-grow: 1; /* Ocupa todo el espacio restante */
    position: relative;
    display: flex;
    align-items: center; /* Centrado vertical del contenido */
    min-height: 360px; /* Misma altura que el menú (120px * 3) para estabilidad */
}

.content-panel {
    display: none;
    width: 100%;
    padding: 3rem;
    animation: fadeInPanel 0.4s ease-out;

    /* Quitamos bordes viejos */
    border: none;
    border-radius: 0;
}

.content-panel.active {
    display: block;
}

.content-panel h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.content-panel p {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-black);
}

/* Animación suave de entrada */
@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- OTRA INFORMACIÓN (Tarjetas Estáticas) --- */

.other-info-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    display: flex;
    flex-direction: row;
    justify-content: center; /* Centradas */
    gap: 30px; /* Espacio entre tarjetas */
    flex-wrap: wrap; /* Para que bajen si no entran */
}

/* La Tarjeta en sí */
.other-info-item {
    flex: 1; /* Crecen para ocupar espacio igual */
    min-width: 300px; /* Ancho mínimo */
    max-width: 380px; /* Ancho máximo para que no se estiren demasiado */

    /* Estética de Tarjeta */
    background-color: var(--color-white);
    border: 2px solid var(--color-black); /* Borde negro estilo StockiFy */
    border-radius: var(--border-radius);
    padding: 2rem;

    /* Sombra sólida inicial */
    box-shadow: 8px 8px 0 var(--color-gray);
    transition: all 0.3s ease;

    /* Organización interna */
    display: flex;
    flex-direction: column;
    align-items: center; /* Todo centrado */
    text-align: center;
}

/* Efecto Hover en la tarjeta completa */
.other-info-item:hover {
    transform: translateY(-5px); /* Se levanta */
    box-shadow: 12px 12px 0 var(--accent-color); /* Sombra de color */
    border-color: var(--accent-color);
}

/* Header (Icono + Título) */
.other-info-header {
    display: flex;
    flex-direction: column; /* Icono arriba del título */
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;

    /* Quitamos estilos de botón viejo */
    height: auto;
    border: none;
    background: transparent;
}

/* Iconos más grandes */
.other-info-header i {
    font-size: 3rem; /* Icono grande */
    color: var(--accent-color);
    background-color: rgba(94, 129, 172, 0.1); /* Fondo sutil circulo opcional */
    padding: 15px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.other-info-item:hover .other-info-header i {
    transform: scale(1.1) rotate(10deg); /* Pequeña animación al icono */
}

/* Título de la tarjeta */
.other-info-header p {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-black);
}

/* Cuerpo del texto (Siempre visible) */
.other-info-body {
    display: block !important; /* Forzamos que se vea siempre */
    max-height: none !important;
    overflow: visible !important;
    border: none !important;
    padding: 0 !important;
    opacity: 1 !important;
}

.info-main-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.info-secondary-text {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

/* RESPONSIVE */
@media (max-width: 950px) {
    .other-info-wrapper {
        flex-direction: column;
        align-items: center;
        margin: 30px auto; /* Menor margen en móviles */
        gap: 20px; /* Menor distancia entre tarjetas */
    }

    .other-info-item {
        width: 100%;
        max-width: 500px; /* En móvil pueden ser un poco más anchas */
    }
}

/* --- FORMULARIO DE CONTACTO --- */
#contact-container {
    margin: 80px 0;
    width: 100%;
}

.contact-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
}

#contact-form {
    flex: 1;
    padding: 2rem;
    border: var(--border-strong);
    border-radius: var(--border-radius);
    box-shadow: 10px 10px 0 var(--color-gray);
    background: var(--color-white);
}

#contact-map {
    flex: 1;
    height: 100%;
    min-height: 740px;
    border: var(--border-strong);
    border-radius: var(--border-radius);
    box-shadow: 10px 10px 0 var(--color-gray);
}

/* --- RESPONSIVE (Móviles y Tablets) --- */
@media (max-width: 950px) {
    /* Ajuste de Títulos */
    .about-title { font-size: 1.5rem; width: 100%; line-height: 2rem; }
    .about-subtitle { font-size: 1rem; width: 80%; }

    /* Contenedor pasa a columna */
    .about-container {
        flex-direction: column;
        height: auto;
    }

    /* Menú arriba */
    .options-wrapper {
        width: 100%;
        border-right: none;
        border-bottom: var(--border-strong);
    }

    .about-option {
        height: auto;
        width: 100%;
        min-height: 60px;
        padding: 15px;
        text-align: center;
        justify-content: center;
    }

    /* Contenido abajo */
    .about-container > div:last-child {
        min-height: auto;
    }

    .content-panel {
        padding: 2rem 1.5rem;
    }

    /* Contacto en columna */
    .contact-wrapper {
        flex-direction: column;
    }

    #contact-map {
        height: 30em;
        width: 21em;
    }
}

@media (max-width: 630px) {
    #contact-map {
        height: 30em;
        width: 21em;
    }
}