﻿/* Hero Section - Con logo a la derecha */
.hero-unete {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 50%, #5dade2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

    .hero-unete::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        opacity: 0.4;
    }

    .hero-unete .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 60px;
        position: relative;
        z-index: 1;
    }

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-unete img {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .hero-unete img:hover {
        opacity: 1;
        transform: scale(1.05);
    }

.hero-header {
    text-align: left;
}

.hero-overline {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: block;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* Contenido Principal */
.contenido-principal {
    padding: 60px 0;
    background: linear-gradient(to bottom, #f8fbfd 0%, #ffffff 100%);
}

.content-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.content-card {
    background: white;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 16px rgba(41, 128, 185, 0.12);
    border: 1px solid rgba(41, 128, 185, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .content-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 24px rgba(41, 128, 185, 0.2);
    }



.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d5e8f0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #2980b9;
    transition: all 0.3s ease;
}

.content-card:hover .card-icon {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
}

.card-text {
    font-size: 16px;
    line-height: 1.7;
    color: #5a6c7d;
    margin: 0;
}

.card-destacada {
    grid-column: 1 / -1;
    border: 2px solid #2980b9;
}

    .card-destacada::before {
        height: 6px;
        transform: scaleX(1);
    }

    .card-destacada .card-icon {
        background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
        color: white;
    }

/* CTA Section */
.cta-section {
    margin-top: 60px;
}

.cta-card {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(41, 128, 185, 0.3);
}

    .cta-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        opacity: 0.3;
    }

    .cta-card > * {
        position: relative;
        z-index: 1;
    }

.cta-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin: 0 0 16px 0;
}

.cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 32px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: white;
    color: #2980b9;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

    .cta-button:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        color: #1a5a8a;
    }

    .cta-button svg {
        transition: transform 0.3s ease;
    }

    .cta-button:hover svg {
        transform: translateX(4px);
    }

/* Responsive */
@media (max-width: 968px) {
    .hero-unete .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-header {
        text-align: center;
    }

    .hero-unete img {
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    .hero-unete {
        padding: 50px 0;
    }

        .hero-unete .container {
            gap: 30px;
        }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-unete img {
        max-width: 180px;
    }

    .content-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .content-card {
        padding: 28px;
    }

    .card-destacada {
        grid-column: 1;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-text {
        font-size: 16px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-unete img {
        max-width: 140px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-icon {
        width: 56px;
        height: 56px;
    }

        .card-icon svg {
            width: 28px;
            height: 28px;
        }
}

/*AQUI CSS FORMULARIO*/
/* Sección del formulario */
.formulario-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #f8fbfd 0%, #ffffff 100%);
    min-height: 100vh;
}

.volver-container {
    margin-bottom: 30px;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: #2980b9;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #2980b9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .btn-volver:hover {
        background: #2980b9;
        color: white;
    }

    .btn-volver svg {
        transition: transform 0.3s ease;
    }

    .btn-volver:hover svg {
        transform: translateX(-4px);
    }

.formulario-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 8px 32px rgba(41, 128, 185, 0.15);
    max-width: 800px;
    margin: 0 auto;
}

.form-main-title {
    font-size: 32px;
    font-weight: 800;
    color: #2980b9;
    margin: 0 0 10px 0;
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    margin: 0 0 40px 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 24px;
}

    .form-group.col-md-6 {
        flex: 1;
    }

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 8px;
    }

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

    .form-control:focus {
        outline: none;
        border-color: #2980b9;
        box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
    }

.form-control-file {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 2px dashed #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

    .form-control-file:hover {
        border-color: #2980b9;
        background: #f8fbfd;
    }

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.text-danger {
    color: #dc3545;
    font-size: 13px;
    display: block;
    margin-top: 5px;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    justify-content: center;
}

.btn-enviar,
.btn-cancelar {
    flex: 1;
    max-width: 250px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enviar {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: white;
}

    .btn-enviar:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(41, 128, 185, 0.3);
    }

.btn-cancelar {
    background: white;
    color: #5a6c7d;
    border: 2px solid #e0e6ed;
}

    .btn-cancelar:hover {
        border-color: #2980b9;
        color: #2980b9;
    }

.mensaje-exito {
    display: block;
    padding: 15px;
    margin-top: 20px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.mensaje-error {
    display: block;
    padding: 15px;
    margin-top: 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .formulario-card {
        padding: 30px 20px;
    }

    .form-main-title {
        font-size: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-enviar,
    .btn-cancelar {
        max-width: 100%;
    }
}

@keyframes elasticIn {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }

    60% {
        opacity: 1;
        transform: scale(1.1);
    }

    80% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.formulario-card {
    animation: elasticIn 0.8s ease;
}

    .formulario-card:hover {
        transform: translateY(-5px);
        transition: 0.3s;
    }

.formulario-card {
    will-change: transform, opacity;
}


select.form-control {
    height: auto;
    line-height: 1.5;
    padding: 10px 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

    select.form-control::-ms-expand {
        display: none;
    }
