/* Reset y base */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* Animaciones */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Contenedor del sitio para páginas internas */
.site-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Página de contacto */
.contacto-page {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Contenedor general */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-section {
    width: 100vw;
    background-color: #1A3F8A;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin: 0;
    padding: 80px 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero-section h1 {
    animation: fadeInDown 1s ease 0.2s both;
    font-size: 48px;
    margin: 0;
    font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 20px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInDown 1s ease 0.4s both;
}

/* Contenido de la página */
.content-wrapper {
    padding: 60px 0;
    width: 100%;
}

/* Intro */
.intro-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.intro-section h2 {
    font-size: 32px;
    color: #1A3F8A;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.intro-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1A3F8A;
}

.contact-form-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    animation: fadeInUp 1s ease 0.8s both;
}

.contact-form-wrapper {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 35px;
    max-width: 700px;
    width: 100%;
    height: 900px;
    font-family: 'Montserrat', sans-serif;
}

.contact-form-wrapper h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.contact-form-wrapper p {
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f5f7fa;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3e64ff;
    box-shadow: 0 0 0 3px rgba(62, 100, 255, 0.1);
}

.btn-primary {
    background-color: #163b87;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0d2657;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.contact-logo {
    width: 100px;
    opacity: 0.8;
}

.mensaje-form {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    animation: fadeInDown 0.5s ease;
}

.mensaje-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mensaje-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled:hover {
    background-color: #163b87;
    transform: none;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .contact-form-wrapper {
        margin: 0 20px;
        padding: 30px 25px;
    }
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 50px 0;
    }
    .hero-section h1 {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .contact-form-wrapper {
        margin: 0 10px;
        padding: 25px 20px;
    }
    .intro-section h2 {
        font-size: 24px;
    }
    .container {
        padding: 0 10px;
    }
}