body {
    /* Fondo general con imagen estática y efecto blur */
    background: #b9b4b4;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background: url('slide1.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(8px) brightness(0.85) grayscale(0.1);
    opacity: 0.85;
}
.sgi-main-btn {
    display: inline-block;
    margin-top: 2.2rem;
    padding: 0.9rem 2.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary-color);
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 18px rgba(10,46,82,0.13);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    animation: fadeInUp 1.2s 0.7s both;
}
.sgi-main-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px) scale(1.04);
}

/* Cards desplegables */
.sgi-card-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1.2rem;
    padding: 1rem 0 0 0;
    border-top: 1px solid #eee;
    animation: fadeInLinks 0.4s;
    gap: 0.7rem;
}
.sgi-card.open .sgi-card-links {
    display: flex;
    align-items: center;
}
.sgi-card-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.sgi-card-link:hover {
    background: var(--secondary-color);
    color: #fff;
}
@keyframes fadeInLinks {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ================================
   TEXTO CENTRAL SGI
   ================================ */
.sgi-central-text {
    width: 100vw;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto 2rem auto;
    padding-top: 7vh;
    animation: fadeIn 1.2s;
}
.sgi-title {
    font-family: 'Poppins', Oswald, Arial, sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 1.2px;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}

@media (max-width: 600px) {
    .sgi-title {
        font-size: 1.2rem;
        line-height: 1.2;
        letter-spacing: 0.7px;
    }
    .sgi-central-text {
        padding-top: 3vh;
        min-height: 40vh;
    }
    .sgi-main-btn {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    .sgi-subtitle {
        font-size: 1rem;
    }
    .sgi-card-title {
        font-size: 0.95rem;
    }
    .sgi-card-text {
        font-size: 0.89rem;
    }
    .sgi-card-link {
        font-size: 0.92rem;
    }
}
.sgi-animated-bar {
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
    margin: 0 auto 1.5rem auto;
    animation: barGrow 1.2s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes barGrow {
    from { width: 0; opacity: 0; }
    to { width: 120px; opacity: 1; }
}
.sgi-subtitle {
    font-size: 1.3rem;
    color: white;
    font-weight: 500;
    margin-bottom: 0;
    opacity: 0.92;
    letter-spacing: 0.5px;
    animation: fadeInUp 1.5s 0.5s both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Colores de la paleta */
:root {
    --primary-color: #0a2e52; /* Azul oscuro */
    --secondary-color: #ffc107; /* Amarillo */
    --text-light: #f0f0f0;
    --text-dark: #333;
    --card-bg: #fff;
    --card-border: #ccc;
}

/* Estilos Generales */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #b9b4b4;
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
    animation: fadeIn 1s ease-in-out;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.solicita-info {
    background-color: var(--secondary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solicita-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.solicita-info .icon {
    margin-right: 0.5rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    animation: slideInFromTop 1s ease-out;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    animation: fadeIn 1.5s ease-in-out;
}

/* Cards Section */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    animation: scaleIn 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.card {
    background-color: var(--card-bg);
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) rotateZ(-1deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-text {
    font-size: 1rem;
    color: #666;
}


/* ================================
   CARRUSEL SGI
   ================================ */
.sgi-carousel-section {
    width: 100vw;
    min-height: 100vh;
    height: 100vh;
    background: var(--light-bg, #f8f9fa);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    box-sizing: border-box;
}

/* Ajuste para respetar el header/navbar fijo */
body .sgi-carousel-section {
    padding-top: 83px; /* Ajusta este valor si tu navbar/header tiene otra altura */
    height: calc(100vh - 83px);
    min-height: calc(100vh - 83px);
}
.sgi-carousel {
    position: relative;
    width: 100vw;
    height: 100%;
    max-width: 100vw;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}
.sgi-carousel-slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: opacity 0.7s;
    opacity: 0;
    z-index: 1;
}
.sgi-carousel-slide.active {
    display: block;
    position: relative;
    opacity: 1;
    z-index: 2;
    animation: fadeIn 1s;
}
.sgi-carousel-img {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.sgi-carousel-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(0deg,#0a2e52 60%, rgba(26,35,126,0.2) 100%);
    color: #fff;
    padding: 2rem 2rem 1.5rem 2rem;
    border-radius: 0 0 20px 20px;
    text-align: left;
    box-sizing: border-box;
}
.sgi-carousel-caption h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.sgi-carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 0;
}
.sgi-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26,35,126,0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.sgi-carousel-btn:hover {
    background: var(--secondary-color);
    color: #1a237e;
}
.sgi-carousel-btn.prev { left: 18px; }
.sgi-carousel-btn.next { right: 18px; }
.sgi-carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}
.sgi-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    opacity: 0.7;
    transition: background 0.3s, opacity 0.3s;
}
.sgi-carousel-dot.active {
    background: var(--secondary-color);
    opacity: 1;
}

@media (max-width: 768px) {
    .sgi-carousel-section {
        padding-top: 60px;
        height: calc(100vh - 60px);
        min-height: calc(100vh - 60px);
    }
    .sgi-carousel-img {
        height: 40vh;
        min-height: 180px;
        max-height: 50vh;
    }
    .sgi-carousel-caption {
        padding: 1rem 1rem 0.8rem 1rem;
    }
    .sgi-carousel-caption h2 {
        font-size: 1.2rem;
    }
}

/* ================================
   CARDS SGI (Envío de documentos)
   ================================ */
/* Sección de cartas con más vida y color */
.sgi-cards-section {
    background: rgba(255,255,255,0.85);
    padding: 3rem 0 4rem 0;
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(10,46,82,0.10);
    border-radius: 32px 32px 0 0;
    margin-top: 2rem;
    overflow: hidden;
}
.sgi-cards-section::before {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 80%);
    opacity: 0.18;
    z-index: 0;
}
.sgi-cards-section::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 80%);
    opacity: 0.13;
    z-index: 0;
}
.sgi-cards-container, .directors-section-header {
    position: relative;
    z-index: 1;
}
/* Responsive cards grid */
.sgi-cards-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem;
}
.sgi-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.13);
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid var(--secondary-color);
    position: relative;
    min-width: 0;
    word-break: break-word;
    overflow: hidden;
}
.sgi-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 90px; height: 90px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 80%);
    opacity: 0.10;
    z-index: 0;
}
.sgi-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 90px; height: 90px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 80%);
    opacity: 0.10;
    z-index: 0;
}
.sgi-card > * { position: relative; z-index: 1; }

@media (max-width: 900px) {
    .sgi-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.2rem;
        padding: 1.2rem;
    }
    .sgi-card {
        padding: 1.5rem 1rem 1rem 1rem;
    }
}

@media (max-width: 600px) {
    .sgi-cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }
    .sgi-card {
        padding: 1.2rem 0.7rem 0.7rem 0.7rem;
        font-size: 0.97rem;
    }
    .sgi-card-title {
        font-size: 1.05rem;
    }
    .sgi-card-icon {
        font-size: 2rem;
        margin-bottom: 0.7rem;
    }
}
.sgi-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}
.sgi-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}
.sgi-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.sgi-card-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    min-height: 48px;
}
.sgi-card-btn {
    background: #FFD54F;
    color: #0a2e52;
    border: none;
    font-weight: bolder !important;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(26,35,126,0.08);
}
.sgi-card-btn:hover {
    background: #FFC107;
    color: var(--primary-color);
}

/* Reutilizar estilos de directores para el header de sección */
.directors-section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.directors-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}
.directors-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #ffd54f);
    border-radius: 2px;
}
.directors-section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromTop {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}