* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 130px;
    height: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #1a7a8a;
}

/* Accessibility Button */
.accessibility-btn {
    position: fixed;
    right: 0;
    top: 164px;
    background: #4a6f75;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 1000;
    font-size: 24px;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 60px;
    background: white;
    min-height: 600px;
    gap: 20px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-title {
    font-size: 90px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
}

.hero-title .asi {
    color: #c4a557;
}

.hero-title .se {
    color: #999;
    font-weight: 300;
}

.hero-title .hace {
    color: #1a7a8a;
    font-weight: 700;
}

.hero-title .puerto-rico {
    font-family: 'Brush Script MT', cursive;
    color: #000;
    font-size: 72px;
    font-weight: 400;
    font-style: italic;
    display: block;
    margin-top: -10px;
}

.hero-subtitle {
    color: #333;
    font-size: 18px;
    line-height: 1.6;
    margin-top: 40px;
    max-width: 500px;
}

.hero-subtitle p {
    margin-bottom: 5px;
}

/* Imagen principal del Hero */
.hero-main-image {
    flex: 1;
    max-width: 2500px;
    width: 150%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    margin: -6rem 1rem 1rem 1rem;
}

/* Cards Section - Centrado y más cuadrado */
.cards-section {
    display: flex;
    gap: 30px;
    padding: 80px 60px;
    background: white;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.card {
    flex: 0 1 450px;
    max-width: 550px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 50px 40px;
    color: white;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Tarjeta azul con imagen de fondo */
.card.blue .card-content.with-bg-image {
    background-image: url('/static/Construye.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Tarjeta naranja con imagen de fondo */
.card.orange .card-content.with-bg-image {
    background: url('/static/Construye2.jpg');
    background-size: cover;
    background-position: center;
}

.card h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.card p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
    z-index: 2;
    align-self: flex-start;
}

.card-btn:hover {
    transform: translateX(5px);
}

.card.blue .card-btn {
    background: #e07856;
    color: white;
}

.card.orange .card-btn {
    background: #000;
    color: white;
}

/* Mission Section - CON IMAGEN DE MAPA NARANJA */
.mission {
    background: url('/static/map.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 60px 250px 60px;
    /* Más padding abajo para el espacio de las tarjetas */
    text-align: center;
    position: relative;
    overflow: visible;
    /* Importante para que no corte nada si se sale */
    z-index: 1;
}

.mission h2 {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mission-underline {
    width: 140px;
    height: 3px;
    background: white;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Contact Section - SUPERPUESTA AL MAPA */
.contact-section {
    display: flex;
    gap: 60px;
    padding: 0 60px 120px;
    /* Quitamos padding top */
    background: transparent;
    /* Fondo transparente para ver el mapa detrás */
    position: relative;
    margin-top: -150px;
    /* Mueve la sección hacia arriba sobre el mapa */
    z-index: 10;
    /* Asegura que esté por encima del mapa */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    flex: 1;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    position: relative;
    z-index: 1;
}

.contact-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

.contact-info {
    flex: 1;
    padding: 50px 40px;
}

.contact-icon {
    color: #1a7a8a;
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.contact-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    margin-top: 30px;
}

.contact-info p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.contact-phone {
    color: #c4a557 !important;
    font-weight: 600;
    margin-top: 20px;
}

/* Footer */
footer {
    background: #000000;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    max-width: 600px;
    height: auto;
    margin: -7rem 1rem 1rem 55rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-text {
    color: #aaa;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 20px;
    width: 300px;
}

.social-icon {
    color: white;
    font-size: 24px;
    transition: color 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Estilo para las imágenes de los iconos sociales */
.social-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        gap: 40px;
    }

    .hero-main-image {
        max-width: 100%;
    }

    .cards-section {
        flex-direction: column;
        align-items: center;
    }

    .card {
        max-width: 600px;
        width: 100%;
    }

    .contact-section {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 16px 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
        text-align: center;
    }

    nav a {
        font-size: 14px;
        line-height: 1.2;
    }

    .hero {
        padding: 36px 20px 20px;
        min-height: auto;
        gap: 24px;
    }

    .hero-main-image {
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: block;
    }

    .cards-section {
        padding: 40px 20px;
        gap: 20px;
    }

    .card {
        width: 100%;
        max-width: 100%;
    }

    .card-content {
        min-height: 320px;
        padding: 32px 24px;
    }

    .card h2 {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .card p {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .mission {
        padding: 70px 20px 180px;
    }

    .mission h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .contact-section {
        padding: 0 20px 30px;
        gap: 20px;
    }

    .contact-card {
        flex-direction: column;
        width: 100%;
    }

    .contact-image {
        min-height: 220px;
    }

    .footer-logo {
        display: block;
        max-width: 240px;
        width: calc(100% - 40px);
        height: auto;
        margin: -3rem auto 1rem;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 14px 16px;
    }

    .logo {
        width: 112px;
    }

    nav ul {
        gap: 10px 14px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        padding: 28px 16px 12px;
    }

    .cards-section {
        padding: 32px 16px;
    }

    .card-content {
        min-height: 280px;
        padding: 26px 18px;
    }

    .card h2 {
        font-size: 24px;
    }

    .card-btn {
        padding: 12px 22px;
        font-size: 14px;
    }

    .mission {
        padding: 60px 16px 160px;
    }

    .mission h2 {
        font-size: 26px;
    }

    .contact-section {
        padding: 0 16px 24px;
    }

    .contact-image {
        min-height: 200px;
    }

    .contact-info {
        padding: 24px 18px;
    }
}
/* ============================================ */
/* ESTILOS PARA PÁGINA DE ORIENTACIÓN */
/* ============================================ */

/* Page Title Section */
.page-title-section {
    background: white;
    padding: 80px 60px 60px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: #c4a557;
    margin-bottom: 0;
}

/* Hero Section with Split Layout */
.hero-split {
    display: flex;
    min-height: 500px;
}

.hero-split .hero-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%234a6f75" width="100" height="100"/></svg>');
}

.hero-split .hero-content {
    flex: 1;
    background: linear-gradient(135deg, #c4a557 0%, #b89848 100%);
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.hero-split .hero-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 50px;
}

.hero-split .hero-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 0;
}

/* Resources Grid */
.resources-section {
    background: #f5f5f5;
    padding: 80px 60px 100px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.resource-card {
    background: linear-gradient(135deg, #4a9daa 0%, #3a8d9a 100%);
    padding: 50px 40px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resource-card h3 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    text-decoration: underline;
    line-height: 1.4;
}

/* Mission Section with Logo */
.mission-with-logo {
    background-image: url('/static/map.png');
    padding: 100px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission-with-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.05) 2px, rgba(255,255,255,0.05) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.05) 2px, rgba(255,255,255,0.05) 4px);
    opacity: 0.3;
    pointer-events: none;
}

.mission-with-logo h2 {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mission-with-logo .mission-underline {
    width: 140px;
    height: 3px;
    background: white;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.mission-with-logo .mission-text {
    color: white;
    font-size: 18px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 1;
}

.mission-with-logo .mission-logo {
    background: white;
    padding: 30px 50px;
    display: inline-block;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.mission-with-logo .mission-logo img {
    max-width: 350px;
    height: auto;
}

/* ============================================ */
/* ESTILOS PARA PÁGINA CONOCE EL PROGRAMA */
/* ============================================ */

/* Program Hero Section */
.program-hero {
    display: flex;
    min-height: 500px;
    background: white;
}

.program-hero-image {
    flex: 0 0 45%;
    background-size: cover;
    background-position: center;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%234a6f75" width="100" height="100"/></svg>');
}

.program-hero-content {
    flex: 1;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.program-hero-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin-bottom: 10px;
}

.program-hero-content .subtitle {
    font-size: 18px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.divider-line {
    width: 80px;
    height: 3px;
    background: #c4a557;
    margin: 20px 0 30px 0;
}

.program-hero-content .description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* Program Description Section */
.program-description {
    padding: 60px 80px;
    background: white;
    max-width: 1400px;
    margin: 0 auto;
}

.program-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

/* Portal Info Section */
.portal-info {
    padding: 50px 80px;
    background: white;
    max-width: 1400px;
    margin: 0 auto;
}

.portal-info h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.portal-info ul {
    list-style: none;
    padding: 0;
}

.portal-info li {
    font-size: 16px;
    line-height: 2.2;
    color: #555;
}

/* Propositos Section - Dark Teal */
.propositos-section {
    background: #4a6f75;
    padding: 80px;
    color: white;
}

.propositos-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
}

.proposito-item {
    max-width: 1000px;
    margin: 0 auto 50px;
}

.proposito-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.proposito-item p {
    font-size: 18px;
    line-height: 1.6;
}

/* Componentes Section - Light Teal */
.componentes-section {
    background: #4a9daa;
    padding: 80px;
    color: white;
}

.componentes-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
}

.componente-grid {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.componente-image {
    flex: 0 0 400px;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.componente-content {
    flex: 1;
}

.componente-content p {
    font-size: 18px;
    line-height: 2;
    margin-bottom: 20px;
}

/* Beneficios Section - Gold */
.beneficios-section {
    background: linear-gradient(135deg, #c4a557 0%, #b89848 100%);
    padding: 80px;
    color: white;
}

.beneficios-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.beneficio-item {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 80px;
    align-items: center;
}

.beneficio-image {
    flex: 0.5 0 350px;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.beneficio-content {
    flex: 1;
}

.beneficio-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.beneficio-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Final Mission Section */
.final-mission {
    background-image: url('/static/map.png');
    padding: 100px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.05) 2px, rgba(255,255,255,0.05) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.05) 2px, rgba(255,255,255,0.05) 4px);
    opacity: 0.3;
    pointer-events: none;
}

.final-mission h2 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.final-mission .mission-underline {
    width: 140px;
    height: 3px;
    background: white;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.final-mission p {
    font-size: 18px;
    color: white;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.final-logo {
    background: white;
    padding: 30px 50px;
    display: inline-block;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.final-logo img {
    max-width: 350px;
    height: auto;
}

/* Responsive para página Conoce el Programa */
@media (max-width: 1200px) {
    .program-hero {
        flex-direction: column;
    }

    .program-hero-image {
        flex: 0 0 400px;
    }

    .componente-grid {
        flex-direction: column;
    }

    .componente-image {
        flex: 0 0 300px;
        width: 100%;
    }

    .beneficio-item {
        flex-direction: column;
    }

    .beneficio-image {
        flex: 0 0 250px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .program-hero-content {
        padding: 40px;
    }

    .program-hero-content h2 {
        font-size: 24px;
    }

    .program-description {
        padding: 40px;
    }

    .portal-info {
        padding: 40px;
    }

    .propositos-section {
        padding: 40px;
    }

    .propositos-section h2 {
        font-size: 32px;
    }

    .componentes-section {
        padding: 40px;
    }

    .componentes-section h2 {
        font-size: 32px;
    }

    .beneficios-section {
        padding: 40px;
    }

    .beneficios-section h2 {
        font-size: 32px;
    }

    .final-mission h2 {
        font-size: 28px;
    }
}
/* ============================================
   ANIMACIONES AVANZADAS
   ============================================ */

/* Animación de Aparición al Hacer Scroll */
.page-title, .hero-split, .resource-card, .mission-with-logo, .card, .contact-card,
.program-hero, .program-description, .portal-info, .propositos-section, 
.componentes-section, .beneficios-section, .final-mission {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-title.scrolled, 
.hero-split.scrolled, 
.resource-card.scrolled, 
.mission-with-logo.scrolled, 
.card.scrolled, 
.contact-card.scrolled,
.program-hero.scrolled,
.program-description.scrolled,
.portal-info.scrolled,
.propositos-section.scrolled,
.componentes-section.scrolled,
.beneficios-section.scrolled,
.final-mission.scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #C8973E, #E8B96E);
    z-index: 999;
    transition: width 0.1s ease;
}

/* Counter Animation */
.counter {
    font-size: 3rem;
    font-weight: bold;
    color: #C8973E;
}

/* ============================================
   SOLICITUD DE EMPLEO — FORMULARIO (index4)
   ============================================ */

.form-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.form-hero {
    background: white;
    padding: 60px 60px 40px;
    color: white;
}

.form-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.form-hero p {
    font-size: 16px;
    opacity: 0.85;
    max-width: 700px;
    line-height: 1.6;
    color: #333;
}

.form-hero .hero-underline {
    width: 80px;
    height: 4px;
    background: #c4a557;
    margin: 20px 0;
}

/* Form container */
.form-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 30px 80px;
}

/* Section Card */
.form-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    margin-bottom: 30px;
    overflow: hidden;
}

.section-header {
    background: #1a7a8a;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-header .section-number {
    background: #c4a557;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.section-header h2 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.section-body {
    padding: 30px;
}

/* Grid layouts */
.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}

.field-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 30px;
}

.field-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 24px;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.col-span-full {
    grid-column: 1 / -1;
}

/* Field */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group input[type="date"],
.field-group input[type="number"],
.field-group select,
.field-group textarea {
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 15px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    width: 100%;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: #1a7a8a;
    box-shadow: 0 0 0 3px rgba(26, 122, 138, 0.1);
    background: white;
}

.field-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio / Checkbox groups */
.radio-group,
.check-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.radio-group label,
.check-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
}

.radio-options,
.check-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-options.vertical,
.check-options.vertical {
    flex-direction: column;
    gap: 8px;
}

.radio-option,
.check-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"],
.check-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a7a8a;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option span,
.check-option span {
    font-size: 14px;
    color: #444;
    font-weight: 500;
}

/* Divider for address blocks */
.address-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 8px 0;
}

.address-divider span {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.address-divider::before,
.address-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* Sub-section block */
.sub-block {
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    background: #fafafa;
}

.sub-block-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a7a8a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a7a8a;
    display: inline-block;
}

/* Grade pills */
.grade-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.grade-pill {
    position: relative;
}

.grade-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.grade-pill label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid #ddd;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
    letter-spacing: 0;
}

.grade-pill input[type="radio"]:checked + label {
    background: #1a7a8a;
    border-color: #1a7a8a;
    color: white;
}

.grade-pill label:hover {
    border-color: #1a7a8a;
    color: #1a7a8a;
}

/* Consent block */
.consent-block {
    background: #f0f8fa;
    border-left: 4px solid #1a7a8a;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 14px;
}

.consent-block p {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Section note */
.section-note {
    background: #fffbf0;
    border: 1px solid #f0d080;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    color: #7a6020;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* File upload */
.file-upload-area {
    border: 2px dashed #c0d8dc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #f8fdfe;
}

.file-upload-area:hover {
    border-color: #1a7a8a;
    background: #f0f8fa;
}

.file-upload-area input[type="file"] {
    width: 100%;
    cursor: pointer;
    font-size: 14px;
}

.file-upload-area p {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

/* Required asterisk */
.req {
    color: #cc3333;
    margin-left: 2px;
}

/* Submit / Reset buttons */
.form-actions {
    text-align: center;
    padding: 20px 0 10px;
}

.btn-submit {
    background: linear-gradient(135deg, #1a7a8a 0%, #4a9daa 100%);
    color: white;
    border: none;
    padding: 16px 60px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 122, 138, 0.4);
}

.btn-reset {
    background: transparent;
    color: #888;
    border: 1.5px solid #ccc;
    padding: 15px 40px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 16px;
    transition: border-color 0.2s, color 0.2s;
}

.btn-reset:hover {
    border-color: #999;
    color: #555;
}

/* Responsive — form */
@media (max-width: 900px) {
    .field-grid {
        grid-template-columns: 1fr;
    }
    .field-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .field-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-span-2,
    .col-span-3 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .form-hero {
        padding: 40px 20px 30px;
    }
    .form-hero h1 {
        font-size: 28px;
    }
    .form-container {
        padding: 20px 12px 60px;
    }
    .section-body {
        padding: 20px;
    }
    .field-grid-3,
    .field-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* ESTILOS PARA PÁGINA CODE ENFORCEMENT */
/* ============================================ */

.code-hero {
    background: linear-gradient(135deg, #4a6f75 0%, #1a7a8a 100%);
    padding: 90px 60px;
    color: white;
}

.code-hero-content {
    max-width: 1100px;
    margin: 0 auto;
}

.code-hero .eyebrow {
    display: inline-block;
    color: #f0d48a;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.code-hero h1 {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.code-hero p {
    font-size: 20px;
    line-height: 1.7;
    max-width: 820px;
}

.code-page {
    background: #f5f5f5;
    padding: 70px 60px;
}

.intro-card,
.info-panel,
.purpose-section,
.inspection-section,
.benefits-simple,
.commitment-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.intro-card,
.purpose-section,
.inspection-section,
.benefits-simple,
.commitment-section {
    max-width: 1200px;
    margin: 0 auto 35px;
    padding: 45px;
}

.intro-card h2,
.info-panel h2,
.purpose-section h2,
.inspection-section h2,
.benefits-simple h2,
.commitment-section h2 {
    color: #333;
    font-size: 32px;
    margin-bottom: 18px;
}

.intro-card p,
.info-panel p,
.purpose-section p,
.inspection-section p,
.commitment-section p,
.commitment-section li,
.info-panel li {
    color: #555;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.code-grid {
    max-width: 1200px;
    margin: 0 auto 35px;
    display: grid;
    gap: 30px;
}

.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.info-panel {
    padding: 38px;
}

.info-panel ul,
.commitment-section ul {
    padding-left: 22px;
}

.highlight-panel {
    border-top: 8px solid #c4a557;
}

.purpose-cards,
.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.purpose-card,
.benefits-list div {
    background: #eef6f7;
    color: #333;
    border-left: 5px solid #1a7a8a;
    padding: 22px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.5;
}

.inspection-section {
    background: linear-gradient(135deg, #c4a557 0%, #b89848 100%);
    color: white;
}

.inspection-section h2,
.inspection-section p {
    color: white;
}

.closing-text {
    margin-top: 25px;
    font-weight: 700;
    color: #333 !important;
}

@media (max-width: 900px) {
    .two-columns,
    .purpose-cards,
    .benefits-list {
        grid-template-columns: 1fr;
    }

    .code-hero,
    .code-page {
        padding-left: 30px;
        padding-right: 30px;
    }

    .code-hero h1 {
        font-size: 40px;
    }

    .intro-card,
    .purpose-section,
    .inspection-section,
    .benefits-simple,
    .commitment-section,
    .info-panel {
        padding: 28px;
    }
}

  .confirm-wrapper {
            min-height: calc(100vh - 160px);
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f5f5f5;
            padding: 60px 20px;
        }
        .confirm-card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            max-width: 560px;
            width: 100%;
            padding: 56px 48px 48px;
            text-align: center;
        }
        .confirm-card img.confirm-logo {
            height: 64px;
            width: auto;
            margin-bottom: 32px;
        }
        .confirm-icon {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: #e6f4f1;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 28px;
        }
        .confirm-icon svg {
            width: 32px;
            height: 32px;
            stroke: #1a7a8a;
            fill: none;
            stroke-width: 2.5;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .confirm-card h1 {
            font-size: 26px;
            font-weight: 700;
            color: #222;
            margin-bottom: 12px;
        }
        .confirm-divider {
            width: 48px;
            height: 3px;
            background: #c4a557;
            margin: 0 auto 20px;
            border-radius: 2px;
        }
        .confirm-card p {
            font-size: 15px;
            color: #555;
            line-height: 1.7;
            margin-bottom: 10px;
        }
        .confirm-id {
            display: inline-block;
            margin: 20px 0 32px;
            background: #f0f4f5;
            border: 1px solid #d0e0e3;
            border-radius: 6px;
            padding: 12px 28px;
            font-size: 15px;
            color: #333;
        }
        .confirm-id strong {
            font-size: 22px;
            color: #1a7a8a;
            display: block;
            margin-top: 4px;
            letter-spacing: 1px;
        }
        .btn-home {
            display: inline-block;
            padding: 12px 36px;
            background: #1a7a8a;
            color: white;
            border-radius: 4px;
            text-decoration: none;
            font-size: 15px;
            font-weight: 600;
            transition: background 0.2s;
        }
        .btn-home:hover {
            background: #145f6e;
        }
