/* === ESTILO GENERAL === */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(180deg, #f0f6ff, #ffffff);
    color: #333;
}

/* === HERO PRINCIPAL (MISMO MODELO) === */
.hero {
    background: linear-gradient(135deg, #0074E4, #00a8e8);
    color: white;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15), transparent 70%);
    animation: spin 10s infinite linear;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hero h1 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.hero p {
    font-size: 1.1rem;
    color: #eaf4ff;
    max-width: 700px;
    margin: auto;
}

/* === CONTENEDOR PRINCIPAL === */
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}
.container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === IMAGEN === */
.imagen-lateral img {
    width: 320px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}
.imagen-lateral img:hover {
    transform: scale(1.05);
}

/* === FORMULARIO === */
.formulario {
    flex: 1;
    min-width: 300px;
}
.formulario h2 {
    text-align: center;
    color: #0074E4;
    font-size: 1.8rem;
    margin-bottom: 25px;
}
.formulario label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}
.formulario input,
.formulario textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}
.formulario input:focus,
.formulario textarea:focus {
    border-color: #0074E4;
    box-shadow: 0 0 5px rgba(0,116,228,0.3);
    outline: none;
}
.formulario button {
    width: 100%;
    background: #0074E4;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}
.formulario button:hover {
    background: #005bb5;
    transform: scale(1.03);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 30px 20px;
    }
    .imagen-lateral img {
        width: 100%;
        max-width: 400px;
        margin: auto;
        display: block;
    }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
}