/* =====================================================
   MAGCAR DEPOT - ABOUT PAGE CSS ACTUALIZADO
   Archivo: css/about.css
   ===================================================== */

/* ===========================
   HERO ABOUT
   =========================== */
.about-hero {
    position: relative;
    min-height: 400px;
    padding: 120px 0;
    display: flex;
    align-items: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.55));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero-content h1,
.about-hero h1 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto;
    color: #e5e7eb;
}

/* ===========================
   SECCIONES GENERALES
   =========================== */
.about-container {
    background: #ffffff;
}

.about-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: #3b82f6;
    margin: 1rem auto 1.5rem;
    border-radius: 2px;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

.about-section p,
.mission-vision-section p,
.why-choose-section p,
.team-section p {
    line-height: 1.7;
}

/* ===========================
   HISTORIA
   =========================== */
.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.history-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.history-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.img-responsive {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.history-image:hover .img-responsive {
    transform: scale(1.03);
}

.years-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 3;
}

.years-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.years-text {
    display: block;
    font-size: 0.85rem;
    line-height: 1.2;
}

/* ===========================
   MISIÓN, VISIÓN Y VALORES
   =========================== */
.mission-vision-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mv-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.mv-icon {
    font-size: 3rem;
    color: #00a8e8;
    margin-bottom: 20px;
}

.mv-card h3 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.mv-card p {
    color: #666;
    line-height: 1.7;
}

.values-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.values-list li {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: flex-start;
}

.values-list i {
    color: #00a8e8;
    margin-right: 10px;
    margin-top: 5px;
}

/* ===========================
   POR QUÉ ELEGIRNOS
   =========================== */
.why-choose-section {
    padding: 80px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    background: white;
    border-color: #00a8e8;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ===========================
   EQUIPO
   =========================== */
.team-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-member {
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #f0f0f0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.team-member h4 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #333;
}

.member-role {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.member-bio {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===========================
   CTA
   IMPORTANTE: NO usar .btn global para no dañar header
   =========================== */
.about-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
    text-align: center;
}

.cta-content h3 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.about-cta .btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-cta .btn-primary {
    background: #00a8e8;
    color: white;
    border: 2px solid #00a8e8;
}

.about-cta .btn-primary:hover {
    background: #0077b6;
    border-color: #0077b6;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.about-cta .btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-3px);
}

/* ===========================
   CARDS BOOTSTRAP
   =========================== */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ===========================
   CORRECCIÓN HEADER ABOUT
   Evita que about.css agrande idioma, moneda y dark mode
   =========================== */
.header-top {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.header-controls {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
}

.header-controls .btn,
.header-controls button,
#langBtn,
#currencyBtn,
#themeToggle {
    width: auto !important;
    min-width: 42px !important;
    height: 30px !important;
    padding: 4px 10px !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    border-radius: 5px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    transform: none !important;
}

#themeToggle {
    width: 38px !important;
    min-width: 38px !important;
}

.header-controls .btn:hover,
#langBtn:hover,
#currencyBtn:hover,
#themeToggle:hover {
    transform: none !important;
}

/* ===========================
   RESPONSIVE TABLET
   =========================== */
@media (max-width: 992px) {
    .history-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mv-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1,
    .about-hero h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .about-hero {
        min-height: 360px;
        padding: 100px 0;
    }
}

/* ===========================
   RESPONSIVE MÓVIL
   =========================== */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-cta .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .about-hero {
        min-height: 320px;
        padding: 80px 0;
    }

    .hero-content h1,
    .about-hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .header-controls {
        justify-content: center !important;
        margin-top: 8px;
    }
}

/* ===========================
   RESPONSIVE MÓVIL PEQUEÑO
   =========================== */
@media (max-width: 576px) {
    .about-section,
    .mission-vision-section,
    .why-choose-section,
    .team-section,
    .about-cta {
        padding: 60px 0;
    }

    .hero-content h1,
    .about-hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .header-controls .btn,
    .header-controls button,
    #langBtn,
    #currencyBtn,
    #themeToggle {
        height: 28px !important;
        padding: 3px 8px !important;
        font-size: 0.78rem !important;
    }
}
