:root {
    /* Color Palette - Nature & Wellness Inspired */
    --primary-color: #2F5233;
    /* Deep forest green */
    --secondary-color: #94C973;
    /* Light fresh green */
    --accent-color: #B1D8B7;
    /* Very light mint */
    --background-color: #F8F9FA;
    /* Off-white / light gray */
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;

    /* Typography */
    --font-heading: "Krona One", sans-serif;
    --font-body: "AR One Sans", sans-serif;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --radius-md: 12px;
    --radius-lg: 24px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    font-family: var(--font-body);
    color: var(--text-main);
    overflow-x: hidden;
}

/* ================= HEADER ================= */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 0 5%;
    box-sizing: border-box;
}

header img {
    height: 60px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

#buttons_header {
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 40px;
}

#buttons_header span {
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    padding: 10px 0;
    transition: color var(--transition-fast);
}

#buttons_header span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width var(--transition-normal);
}

#buttons_header span:hover {
    color: var(--secondary-color);
}

#buttons_header span:hover::after {
    width: 100%;
}

#buttons_header a {
    text-decoration: none;
    color: inherit;
}

/* ================= PORTADA (HERO) ================= */
#Portada {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Soften the background image with an overlay using linear-gradient */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../iconos/image\\ 1.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    margin-top: 0;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
}

#Portada div {
    max-width: 900px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    animation: fadeIn 1.5s ease;
}

#Portada div #titulo {
    font-family: var(--font-heading);
    font-size: 55px;
    text-align: center;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= MAIN CONTENT & INFO ================= */
#Contenido_Principal {
    position: relative;
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

/* Hide the old rectangle borders which look like debug info */
#containers_rectangulos {
    display: none;
}

#Imformacion {
    max-width: 800px;
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    z-index: 10;
}

#Subtitulo {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

#Subtitulo::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

#Imformacion #descripcion {
    width: 100%;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ================= 3D CARDS (MISION & VISION) ================= */
#Mision_y_Vision {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 80px 5%;
    background-color: var(--white);
}

.card {
    width: 380px;
    height: 480px;
    perspective: 1500px;
    cursor: pointer;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.card:hover .card-inner {
    box-shadow: var(--shadow-lg);
}

.card.active .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 40px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
}

.card-front {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.card-front h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    text-align: center;
    margin: 0;
}

.card-back {
    background-color: var(--white);
    color: var(--text-muted);
    transform: rotateY(180deg);
    border: 2px solid var(--accent-color);
}

.card-back p {
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
    margin: 0;
}

/* ================= PROCESS CARDS ================= */
#Imformacion2 {
    padding: 100px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-color);
}

#Imformacion2 #Subtitulo {
    margin-bottom: 60px;
}

#Imformacion2 #primary_box {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-around;
    gap: 40px;
    flex-wrap: wrap;
}

#primary_box .box_content {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

#primary_box .box_content:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.box_content img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 30px;
    transition: transform var(--transition-normal);
}

.box_content:hover img {
    transform: scale(1.1);
}

.textbox {
    min-height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.textbox p {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--primary-color);
    text-align: center;
    margin: 0;
}

.textboxInfo {
    text-align: center;
}

.textboxInfo p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ================= FOOTER ================= */
.footer-seguro {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
    font-family: var(--font-body);
}

.footer-seguro .footer-contenedor {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-seguro .footer-columna {
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-seguro .footer-columna h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-seguro .footer-columna a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--transition-fast);
}

.footer-seguro .footer-columna a:hover {
    color: var(--white);
    transform: translateX(5px);
    display: inline-block;
}

.footer-seguro .footer-redes {
    display: flex;
    gap: 15px;
}

.footer-seguro .footer-redes a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.footer-seguro .footer-redes a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-seguro .footer-redes img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-seguro .footer-copy {
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    #Portada div #titulo {
        font-size: 40px;
    }

    #Imformacion {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 15px 5%;
    }

    #buttons_header {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    #Portada div #titulo {
        font-size: 30px;
    }

    .card {
        width: 100%;
        max-width: 350px;
    }

    #primary_box .box_content {
        min-width: 100%;
    }
}