.about-hero {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 150px 10% 5% 10%;
    box-sizing: border-box;
    position: relative;
}

.about-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

/* Animaciones */
@keyframes flipFront {
    0% { 
        transform: rotate(2deg) scale(0.95);
        top: 40px;
        left: 40px;
     }
    100% { 
        transform: rotate(0deg) scale(1.02);
        top: 0;
        left: 0;
    }
}

@keyframes flipBack {
    0% { 
        transform: rotate(0deg) scale(1.02);
        top: 0;
        left: 0;
     }
    100% { 
        transform: rotate(2deg) scale(0.95);
        top: 40px;
        left: 40px;
     }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.about-images {
    position: relative;
    flex: 0 0 40%;
    min-width: 250px;
    max-width: 500px;
    height: 250px;
}

.about-img {
    width: 90%;
    max-height: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s  ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: absolute;
    backface-visibility: hidden;
}

.about-img.front {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    z-index: 2 !important;
    top: 0;
    left: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, left 0.3s ease, top 0.3s ease;
}

.about-img.back {
    transform: rotate(2deg) scale(0.95);
    z-index: 1 !important;
    top: 40px;
    left: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, left 0.3s ease, top 0.3s ease;
}

.about-img.front:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 8px 20px var(--color-soft-bg);
}

.about-img.flip-to-from {
    animation: flipFront 0.25s ease forwards;
}

.about-img.flip-to-back {
    animation: flipBack 0.25s ease forwards;
}

.about-text {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-right: 15px;
    text-align: justify;
}

.about-text .section-title {
    flex: 0 0 auto;
    margin-bottom: 15px;
}

.about-text .section-paragraph {
    overflow-y: auto;
    max-height: 400px;
    padding-right: 10px;
}

.about-text .section-paragraph p {
    font-size: 1.1rem;
    color: var(--color-negro);
    line-height: 1.8;
    margin-bottom: 1.5em;
    text-indent: 0;
}

.about-text .section-paragraph p:first-of-type {
    text-indent: 2ch; /* Solo primer párrafo sangrado */
}

/* Scroll elegante*/
.about-text .section-paragraph::-webkit-scrollbar {
    width: 6px;
}

.about-text .section-paragraph::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

.about-text .section-paragraph::-webkit-scrollbar-thumb {
    background: var(--color-principal);
    border-radius: 6px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-secondary);
}

/* Section Segundo */
.values-section {
    padding: 75px 20%;
    background: var(--color-blanco);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title.center {
    text-align: center;
}

.values-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

/* TEXTO */
.value-text {
    flex: 1;
    opacity: 0;
    min-width: 280px;
    max-width: 520px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: left;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.value-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-text h3  {
    color: var(--color-orange-dark);
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.value-text p {
    line-height: 1.7;
    text-align: justify;
}

/* TRIANGULO */
.triangle-wrapper {
    position: relative;
    width: 300px;
    height: 260px;
}

/* Izquierdo (Arriba -> Abajo) */
.triangle-left,
.triangle-right {
    position: absolute;
    width: 6px;
    height: 80%;
    background: var(--color-principal);
    opacity: 0.25;
    left: 50%;
    top: 32.5px;
    transform-origin: top center;
}

.triangle-left {
    transform: translateX(-50%) rotate(-26.6deg);
}

.triangle-right {
    transform: translateX(-50%) rotate(26.6deg);
}

/* Base Triángulo (Abajo Izq -> Abajo Der) */
.triangle-base {
    position: absolute;
    bottom: 32.5px;
    left: 32.5px;
    right: 32.5px;
    height: 6px;
    background: var(--color-principal);
    opacity: 0.25;
}

/* ICONOS */
.value-point {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: var(--color-secondary);
    color: var(--color-blanco);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.value-point:not(.active) {
    animation: pulse 2.5s ease-in-out infinite;
}

.value-point:hover {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.05),
                0 8px 20px rgba(0, 0, 0, 0.18);
    transform: scale(1.08);
}

.value-point.active {
    background: var(--color-principal);
    color: var(--color-negro);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* Posicionamineto triángulo */
.value-point[data-value="experiencia"] { /* Arriba */
    top: 0;
    left: 38%;
}

.value-point[data-value="mision"] { /* Abajo Izquierda */
    bottom: 0;
    left: 0;
}

.value-point[data-value="compromiso"] { /* Abajo Derecha */
    bottom: 0;
    right: 0;
}

/* Section tercera */
.about-promos {
    padding: 100px 10%;
}

.about-promos .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-text {
    font-size: 1.25rem;
    padding: 35px 10%;
    color: var(--color-negro);
    text-align: justify;
    text-justify: inter-word;
    opacity: 0;
    transition: opacity 2s ease-out;
    transition-delay: 0.3s;
}

.section-text.visible {
    opacity: 0.85;
}

.section-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background-color: var(--color-secondary);
    color: var(--color-blanco);
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.section-btn:hover {
    background-color: var(--color-principal);
    color: var(--color-blanco);
    transform: translateY(-2px);
}

/* Grid Imagenes*/
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.promo-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: default;
}

.promo-grid img:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--color-soft-bg);
}

.promo-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
}

.promo-wrapper img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: default;
}

.promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-principal);
    color: var(--color-blanco);
    font-size: 1rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: top right;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.promo-wrapper:hover img {
    transform: scale(1.05);
}

.promo-wrapper:hover .promo-badge {
    transform: scale(0.9);
    opacity: 0.85;
}

/* Section cuarta */
.contact-section {
    position: relative;
    height: 600px;
    background-image: url('../assets/backgrounds/contact.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-content {
    text-align: center;
    width: 700px;
    padding: 20px;
    color: var(--color-blanco);
    text-align: left;
    margin: 0 auto;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.75rem;
    margin-bottom: 35px;
    color: var(--color-orange-dark);
    line-height: 1.4;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item-about{
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    column-gap: 16px;
    font-size: 1.2rem;
    color: var(--color-blanco);
}

.contact-item-about strong {
    text-align: right;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-blanco);
}

.contact-item-about span {
    text-align: left;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .top-img { top: 0; left: 0; width: 90%; }
    .bottom-img { top: 25px; left: 25px; width: 90%; }

    .values-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .value-text h3  {
        margin-top: 25px;
    }

    .triangle-wrapper {
        margin-bottom: 60px;
    }

    .values-section {
        min-height: auto;
    }

    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    .about-hero {
        margin-bottom: 120px;
    }

    .top-img {
        width: 95%;
        top: 0;
        left: 0;
    }

    .bottom-img {
        width: 95%;
        top: 20px;
        left: 20px;
    }

    .values-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .triangle-wrapper {
        margin-bottom: 40px;
    }

    .values-section {
        min-height: auto;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }
}