:root {
    --primary-dark: var(--cayudi-primary-dark, #0E679B);
    --primary-medium: var(--cayudi-primary, #1C86B9);
    --primary-main: var(--cayudi-primary-light, #1D9CD1);
    --primary-light: var(--cayudi-secondary, #1FB2E4);
    --accent-green: var(--cayudi-accent, #57BAA3);
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --text-lighter: #a0aec0;
    --bg-light: #f7fafc;
    --bg-lighter: #edf2f7;
    --shadow-light: rgba(14, 103, 155, 0.08);
    --shadow-medium: rgba(14, 103, 155, 0.15);
    --shadow-dark: rgba(14, 103, 155, 0.25);
    --color-white: #ffffff;
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-main) 50%, var(--primary-light) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    --shadow-soft: 0 10px 40px rgba(14, 103, 155, 0.1);
    --shadow-hover: 0 20px 60px rgba(14, 103, 155, 0.2);
}

.text-primary {
    color: var(--primary-main) !important;
}

.text-secondary {
    color: var(--primary-light);
}

.text-success {
    color: var(--accent-green);
}

.text-white {
    color: var(--bg-lighter);
}

/* Botones modernos */
.modern-btn {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-green));
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-light);
    font-size: 1rem;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px var(--shadow-medium);
    color: white;
    text-decoration: none;
}

.modern-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.modern-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}



@media (hover: none) and (pointer: coarse) {
    .modern-card:hover {
        transform: none;
    }

    .modern-card:active {
        transform: scale(0.98);
    }

    .modern-btn:hover {
        transform: scale(1.02);
    }
}

/* ===== FORMULARIO CAYUDI - DISEÑO PREMIUM ===== */

.cayudi-contact-form-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg,
            rgba(14, 103, 155, 0.03) 0%,
            rgba(29, 156, 209, 0.05) 25%,
            rgba(31, 178, 228, 0.03) 50%,
            rgba(87, 186, 163, 0.04) 75%,
            rgba(247, 250, 252, 0.02) 100%);
    overflow: hidden;
}

/* ===== ELEMENTOS DE FONDO ANIMADOS ===== */
.bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-main), var(--accent-green));
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-green));
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 15%;
    animation-delay: -5s;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-main));
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation-delay: -10s;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}

.shape-4 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 25%;
    animation-delay: -15s;
    background: linear-gradient(135deg, var(--primary-main), var(--primary-light));
}

.shape-5 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    right: 10%;
    animation-delay: -7s;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-dark));
}

/* ===== ONDAS DE FONDO ===== */
.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
}

.wave-bg svg {
    width: 100%;
    height: 100%;
}

.wave-path {
    animation: wave 15s infinite ease-in-out;
}

.wave-1 {
    fill: rgba(29, 156, 209, 0.03);
    animation-delay: 0s;
}

.wave-2 {
    fill: rgba(87, 186, 163, 0.04);
    animation-delay: -5s;
}

.wave-3 {
    fill: rgba(31, 178, 228, 0.02);
    animation-delay: -10s;
}

/* ===== FORMULARIO PRINCIPAL ===== */
.cayudi-contact-form-wrapper {
    position: relative;
    max-width: 700px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 0;
    box-shadow:
        0 32px 64px rgba(14, 103, 155, 0.12),
        0 16px 32px rgba(14, 103, 155, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    overflow: hidden;
    animation: formAppear 1s ease-out;
}

.cayudi-contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(29, 156, 209, 0.02) 0%,
            rgba(87, 186, 163, 0.03) 100%);
    pointer-events: none;
}

/* ===== PARTÍCULAS DECORATIVAS ===== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-main);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 8s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 40%;
    right: 15%;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: -4s;
}

.particle:nth-child(4) {
    top: 70%;
    right: 25%;
    animation-delay: -6s;
}

.particle:nth-child(5) {
    bottom: 20%;
    right: 10%;
    animation-delay: -1s;
}

.particle:nth-child(6) {
    top: 50%;
    left: 50%;
    animation-delay: -3s;
}

/* ===== HEADER DEL FORMULARIO ===== */
.form-header {
    text-align: center;
    padding: 24px 16px 16px;
    position: relative;
    background: linear-gradient(135deg,
            rgba(29, 156, 209, 0.03) 0%,
            rgba(87, 186, 163, 0.02) 100%);
}

.form-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-main), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: iconPulse 2s infinite ease-in-out;
    box-shadow: 0 16px 32px rgba(29, 156, 209, 0.3);
}

.form-icon svg {
    width: 36px;
    height: 36px;
}

.contact-form-title {
    margin: 0 0 20px;
}

.title-main {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-main));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    line-height: 1.2;
    animation: titleSlideIn 0.8s ease-out 0.3s both;
}

.title-subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-medium);
    animation: subtitleSlideIn 0.8s ease-out 0.5s both;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    animation: decorationExpand 0.8s ease-out 0.7s both;
}

.decoration-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: dotPulse 2s infinite ease-in-out;
}

/* ===== CONTENIDO DEL FORMULARIO ===== */
.form-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.form-group {
    position: relative;
    opacity: 0;
    animation: fieldSlideIn 0.6s ease-out forwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.8s;
}

.form-group:nth-child(2) {
    animation-delay: 0.9s;
}

.form-group:nth-child(3) {
    animation-delay: 1s;
}

.form-group:nth-child(4) {
    animation-delay: 1.1s;
}

.form-group-full {
    grid-column: 1 / -1;
    animation-delay: 1.2s !important;
}

/* ===== INPUTS MODERNOS ===== */
.input-wrapper,
.select-wrapper,
.textarea-wrapper {
    position: relative;
    width: 100%;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 12px 12px 56px;
    border: 2px solid rgba(29, 156, 209, 0.1);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    z-index: 2;
}

.form-label {
    position: absolute;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 3;
}

.form-input:focus~.form-label,
.form-input.has-value~.form-label,
.form-select:focus~.form-label,
.form-select.has-value~.form-label,
.form-textarea:focus~.form-label,
.form-textarea.has-value~.form-label {
    top: -8px;
    left: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-main);
    background: white;
    padding: 0 8px;
    border-radius: 8px;
}

.input-icon,
.select-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--text-lighter);
    transition: all 0.4s ease;
    z-index: 3;
    pointer-events: none;
    /* Evita que el icono interfiera con el click/escritura */
}

.textarea-wrapper .input-icon {
    top: 24px;
}

.form-input:focus~.input-icon,
.form-select:focus~.select-icon,
.form-textarea:focus~.input-icon {
    color: var(--primary-main);
    transform: translateY(-50%) scale(1.1);
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-main), var(--accent-green));
    border-radius: 2px;
    transition: all 0.4s ease;
    z-index: 1;
}

.form-input:focus~.input-focus-line,
.form-select:focus~.input-focus-line,
.form-textarea:focus~.input-focus-line {
    width: 92%;
    left: 4%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-main);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 0 0 4px rgba(29, 156, 209, 0.1),
        0 16px 32px rgba(14, 103, 155, 0.15);
    transform: translateY(-2px);
}

/* ===== SELECT PERSONALIZADO ===== */
.form-select {
    appearance: none;
    cursor: pointer;
    padding-right: 60px;
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--text-lighter);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

.form-select:focus~.select-arrow {
    color: var(--primary-main);
    transform: translateY(-50%) rotate(180deg);
}

/* ===== TEXTAREA ===== */
.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
    padding-top: 12px;
}

.textarea-wrapper .form-label {
    top: 30px;
}

.form-textarea:focus+.form-label,
.form-textarea:not(:placeholder-shown)+.form-label {
    top: -8px;
}

.textarea-wrapper .input-icon {
    top: 24px;
}

/* ===== BOTÓN PREMIUM ===== */
.form-actions {
    margin-top: 40px;
    opacity: 0;
    animation: fieldSlideIn 0.6s ease-out 1.4s forwards;
}

.btn {
    width: 100%;
    padding: 20px 32px;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-main), var(--primary-light));
    color: white;
    box-shadow: 0 16px 32px rgba(29, 156, 209, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(29, 156, 209, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-main));
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

.btn-primary:active .btn-ripple {
    animation: ripple 0.6s ease-out;
}

/* ===== MENSAJES ===== */
.form-messages {
    padding: 20px 24px;
    border-radius: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 24px !important;
    animation: messageSlideIn 0.5s ease-out;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.form-messages.success {
    background: rgba(87, 186, 163, 0.1);
    color: var(--accent-green);
    border-color: rgba(87, 186, 163, 0.2);
    box-shadow: 0 8px 16px rgba(87, 186, 163, 0.1);
}

.form-messages.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.1);
}

/* ===== ESTADOS DE VALIDACIÓN (Solo después de interactuar) ===== */
.form-input.touched:valid,
.form-select.touched:valid,
.form-textarea.touched:valid {
    border-color: var(--accent-green);
    background: rgba(87, 186, 163, 0.05);
}

.form-input.touched:invalid:not(:focus),
.form-select.touched:invalid:not(:focus),
.form-textarea.touched:invalid:not(:focus) {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

/* ===== ANIMACIONES ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-40px) rotate(10deg);
    }

    75% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes wave {

    0%,
    100% {
        d: path("M0,60 C300,120 900,0 1200,60 L1200,120 L0,120 Z");
    }

    50% {
        d: path("M0,80 C300,40 900,120 1200,80 L1200,120 L0,120 Z");
    }
}

@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 16px 32px rgba(29, 156, 209, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 40px rgba(29, 156, 209, 0.4);
    }
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes decorationExpand {
    from {
        opacity: 0;
        transform: scaleX(0);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes fieldSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-10px) translateX(5px);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-20px) translateX(-5px);
        opacity: 0.8;
    }

    75% {
        transform: translateY(-10px) translateX(3px);
        opacity: 0.6;
    }
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== EFECTOS HOVER ADICIONALES ===== */
.cayudi-contact-form-wrapper:hover {
    transform: translateY(-8px);
    box-shadow:
        0 40px 80px rgba(14, 103, 155, 0.15),
        0 20px 40px rgba(14, 103, 155, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cayudi-contact-form-wrapper:hover .floating-shape {
    animation-duration: 15s;
}

.cayudi-contact-form-wrapper:hover .particle {
    animation-duration: 6s;
}

/* ===== EFECTOS DE FOCUS MEJORADOS ===== */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    animation: inputFocus 0.4s ease;
}

@keyframes inputFocus {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.02);
    }

    100% {
        transform: translateY(-2px) scale(1);
    }
}

/* ===== EFECTOS DE LOADING PARA EL BOTÓN ===== */
.btn-primary.loading {
    pointer-events: none;
    position: relative;
}

.btn-primary.loading .btn-text {
    opacity: 0;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .cayudi-contact-form-container {
        padding: 40px 16px;
        min-height: auto;
    }

    .cayudi-contact-form-wrapper {
        max-width: 100%;
        border-radius: 24px;
    }

    .form-header {
        padding: 20px 12px 12px;
    }

    .form-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .form-icon svg {
        width: 28px;
        height: 28px;
    }

    .title-main {
        font-size: 2rem;
    }

    .title-subtitle {
        font-size: 1rem;
    }

    .form-content {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 24px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 12px 12px 48px;
        font-size: 16px;
        /* Previene zoom en iOS */
    }

    .form-label {
        left: 54px;
        font-size: 15px;
    }

    .input-icon,
    .select-icon {
        left: 18px;
        width: 20px;
        height: 20px;
    }

    .btn {
        padding: 18px 28px;
        font-size: 16px;
    }

    .floating-shape {
        opacity: 0.05;
    }

    .shape-1 {
        width: 80px;
        height: 80px;
    }

    .shape-2 {
        width: 60px;
        height: 60px;
    }

    .shape-3 {
        width: 120px;
        height: 120px;
    }

    .shape-4 {
        width: 40px;
        height: 40px;
    }

    .shape-5 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .cayudi-contact-form-container {
        padding: 20px 12px;
    }

    .cayudi-contact-form-wrapper {
        border-radius: 20px;
    }

    .form-header {
        padding: 20px 12px 12px;
    }

    .form-content {
        padding: 24px 20px;
    }

    .title-main {
        font-size: 1.75rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 12px 12px 48px;
    }

    .form-label {
        left: 48px;
        font-size: 14px;
    }

    .input-icon,
    .select-icon {
        left: 16px;
        width: 18px;
        height: 18px;
    }

    .btn {
        padding: 16px 24px;
        font-size: 15px;
    }

    .btn-icon {
        width: 20px;
        height: 20px;
    }
}

/* ===== MODO OSCURO (OPCIONAL) ===== */
@media (prefers-color-scheme: dark) {
    .cayudi-contact-form-container {
        background: linear-gradient(135deg,
                rgba(14, 103, 155, 0.08) 0%,
                rgba(29, 156, 209, 0.12) 25%,
                rgba(31, 178, 228, 0.08) 50%,
                rgba(87, 186, 163, 0.10) 75%,
                rgba(45, 55, 72, 0.05) 100%);
    }

    .cayudi-contact-form-wrapper {
        background: rgba(45, 55, 72, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .form-header {
        background: linear-gradient(135deg,
                rgba(29, 156, 209, 0.08) 0%,
                rgba(87, 186, 163, 0.05) 100%);
    }

    .title-subtitle {
        color: rgba(255, 255, 255, 0.7);
    }

    .form-input,
    .form-select,
    .form-textarea {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border-color: rgba(255, 255, 255, 0.2);
    }

    .form-label {
        color: rgba(255, 255, 255, 0.6);
    }

    .input-icon,
    .select-icon,
    .select-arrow {
        color: rgba(255, 255, 255, 0.5);
    }
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-shape,
    .particle {
        animation: none;
    }
}

/* ===== ESTADOS DE CARGA ===== */
.form-loading .form-input,
.form-loading .form-select,
.form-loading .form-textarea,
.form-loading .btn {
    pointer-events: none;
    opacity: 0.7;
}

.form-success .cayudi-contact-form-wrapper {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Estilos específicos para la página de contacto */
.cp-contact-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-main) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    min-height: 50dvh;
    display: flex;
    justify-content: center;
    align-items: center;

}

.cp-contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: cp-gridMove 20s linear infinite;
}

@keyframes cp-gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-10px, -10px);
    }
}

.cp-contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    animation: cp-fadeInUp 0.8s ease-out;
}

.cp-contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    animation: cp-fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes cp-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cp-contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.cp-contact-content {
    padding: 4rem 0;
    background: var(--bg-light);
    position: relative;
    border-radius: 48px 48px 0 0;
    margin-top: -72px
}

.cp-countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cp-country-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: cp-fadeInScale 0.6s ease-out;
}

.cp-country-card:nth-child(1) {
    animation-delay: 0.1s;
}

.cp-country-card:nth-child(2) {
    animation-delay: 0.2s;
}

.cp-country-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes cp-fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cp-country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-main), var(--accent-green));
    border-radius: 20px 20px 0 0;
}

.cp-country-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.cp-country-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cp-country-flag {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    display: inline-block;
}

.cp-bolivia-flag {
    background: linear-gradient(to bottom, #d52b1e 33.33%, #ffda44 33.33%, #ffda44 66.67%, #007a33 66.67%);
}

.cp-mexico-flag {
    background: linear-gradient(to right, #006847 33.33%, white 33.33%, white 66.67%, #ce1126 66.67%);
}

.cp-peru-flag {
    background: linear-gradient(to right, #d91023 33.33%, white 33.33%, white 66.67%, #d91023 66.67%);
}

.cp-contact-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left: 3px solid var(--accent-green);
    background: var(--bg-lighter);
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.cp-contact-section:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.cp-contact-section h4 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.cp-contact-info {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cp-contact-info a {
    color: var(--primary-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cp-contact-info a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.cp-whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 42px;
    background: #25D366;
    color: white !important;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    position: relative;
}

.cp-whatsapp-link:hover {
    background: #128C7E;
    transform: scale(1.1);
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.cp-whatsapp-link svg {
    margin-right: 8px;
    flex-shrink: 0;
}

.cp-phone-number {
    font-weight: 600;
    color: var(--text-dark);
    margin-left: 0.5rem;
}

.cp-form-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    animation: cp-fadeInUp 0.8s ease-out 0.4s both;
}

.cp-form-section h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    text-align: center;
}

/* Responsivo */
@media (max-width: 768px) {
    .cp-contact-hero h1 {
        font-size: 2rem;
    }

    .cp-contact-hero p {
        font-size: 1rem;
    }

    .cp-countries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cp-country-card {
        padding: 1.5rem;
    }

    .cp-contact-container {
        padding: 0 1rem;
    }
}

/* Observado alert */
.cp-observado-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.inscripcion-section .error {
    color: #dc3545;
    background: #fff5f5;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #f8d7da;
    margin-top: 15px;
}






/* Opciones de tipo virtual */
.virtual-type-options {
    display: flex;
    flex-direction: row;
    gap: 0.125rem;
    margin-top: 10px;

}

.virtual-type-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-left: 4px solid #1D9CD1 !important;
    gap: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.virtual-type-option:hover {
    border-color: #1D9CD1;
    background: #f5fbff;
}

.virtual-type-option input:checked+.virtual-type-label {
    color: #1D9CD1;
    font-weight: bold;
}

.virtual-type-option input:checked+.virtual-type-label strong {
    color: #1D9CD1;
}

.virtual-type-label {
    margin-left: 10px;
    display: block;
}

.virtual-type-label small {
    display: block;
    font-weight: normal;
    color: #666;
    font-size: 0.85em;
    margin-top: 3px;
}

/* Estilos para mensajes de precio */
.text-warning {
    color: #e67e22;
    font-weight: bold;
}

.text-danger {
    color: #e74c3c;
    font-weight: bold;
}

.wp-list-table .column-programa {
    width: 25%;
}

.tipo-programa {
    font-weight: bold;
    color: #0073aa;
}

.row-actions {
    font-size: 12px;
    color: #777;
}


.btn-pago {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-pago-paypal {
    background: linear-gradient(135deg, #008bd1 0%, #1861b5 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-pago-whatsapp {
    background: linear-gradient(135deg, #07e874 0%, #01a42d 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-pago:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-pago-paypal:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-pago-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-pago:active {
    transform: translateY(0);
}



.pago-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.alternative-payment-methods {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
}

.alternative-payment-methods>a {
    text-decoration: none;
    flex: 1;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Main Container */
.academic-offer-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}


.content-wrapper {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}

/* Hero Title */
.offer-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.offer-section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-main), var(--accent-green));
    border-radius: 2px;
}

.offer-section-subtitle {
    font-size: 1.275rem;
    font-weight: 500;
    color: var(--text-medium);
    text-align: center;
    text-align: center;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 2rem;
}

/* Section Headers */
.offer-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    animation: slideInLeft 0.8s ease-out;
}

.section-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    box-shadow: var(--shadow-soft);
    animation: pulse 2s infinite ease-in-out;
}

.section-icon i {
    color: white;
    font-size: 1.5rem;
}

.offer-type-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    position: relative;
}

.offer-type-title a {
    text-decoration: none;
    color: inherit;
}

.offer-section-header .view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background-color: transparent;
    color: #1a8cbe;
    text-decoration: none;
    border: 2px solid #1a8cbe;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-left: auto;
}

.offer-section-header .view-all-btn:hover {
    background-color: #1a8cbe;
    color: white;
    transform: scale(1.05);
}

.offer-section-footer {
    display: flex;
    justify-content: center;
    padding: 30px 0px;
}

.view-all-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 35px;
    background-color: transparent;
    color: #1a8cbe;
    text-decoration: none;
    border: 2px solid #1a8cbe;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-footer-btn:hover {
    background-color: #1a8cbe;
    color: white;
    transform: scale(1.05);
}

.view-all-footer-btn i {
    font-size: 14px;
    transition: transform 0.3s;
}

.view-all-footer-btn:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .view-all-footer-btn {
        width: 90%;
        max-width: 400px;
        justify-content: center;
        padding: 16px 30px;
        font-size: 15px;
    }
}

/* Cards */
.program-card {
    background: var(--gradient-card);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s;
}

.program-card:hover::before {
    left: 100%;
}

.program-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 210px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card:hover .card-img-overlay {
    opacity: 0.85;
}

.card-img-overlay i {
    color: white;
    font-size: 3rem;
    animation: pulse 1s infinite;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.program-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 1.25rem;
    position: relative;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.card-text {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary-medium);
    margin-bottom: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: aliceblue;
    border-radius: 0.875rem;
    padding: 0.25rem 0.75rem;
    flex: 1;
}

.meta-item:first-child {
    width: 100%;
    flex: 1 1 100%;
}

.meta-item i {
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

.meta-label {
    line-height: 1;
    font-size: 0.825rem;
}

/* Buttons */
.btn-modern {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 103, 155, 0.3);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    margin: 2rem 0;
}

.empty-state i {
    font-size: 4rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.empty-state p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Loading Animation */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .offer-section-title {
        font-size: 2rem;
    }

    .offer-type-title {
        font-size: 1.525rem;
        margin-left: 4px;
    }

    .section-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 40px;
        height: 40px;
        margin-bottom: 0px;
    }

    .offer-section-header .view-all-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}


/* Stagger animation for cards */
.program-card:nth-child(1) {
    animation-delay: 0.1s;
}

.program-card:nth-child(2) {
    animation-delay: 0.2s;
}

.program-card:nth-child(3) {
    animation-delay: 0.3s;
}

.program-card:nth-child(4) {
    animation-delay: 0.4s;
}

.program-card:nth-child(5) {
    animation-delay: 0.5s;
}

.program-card:nth-child(6) {
    animation-delay: 0.6s;
}


.modern-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.125rem;
}

/* Widgets base */
.sidebar-widget {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

/* Header de widgets */
.widget-header {
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid var(--bg-light);
    background: linear-gradient(to right, var(--primary-light), var(--primary-main));
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-icon {
    font-size: 1.125rem;
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-content {
    padding: 0.925rem .35rem;
}

/* Widget de búsqueda */
.search-widget {
    padding: 0.825rem;
    background: var(--primary-light);
    border-radius: var(--border-radius);
}

.modern-search-form {
    position: relative;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    border: 2px solid var(--primary-main);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--color-white);
    transition: var(--transition);
    outline: none;
    box-shadow: var(--shadow-light);
}

.search-input:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(14, 103, 155, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    background: var(--primary-dark);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.search-button:hover {
    background: var(--primary-medium);
    transform: translateY(-50%) scale(1.05);
}

.search-icon {
    width: 1rem;
    height: 1rem;
}

/* Posts recientes */
.recent-post-item {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bg-light);
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item:hover {
    background: var(--bg-lighter);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: var(--border-radius);
}

.post-thumbnail {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 140px;
    display: block;
}

.post-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.placeholder-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.last-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.recent-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-title a:hover {
    color: var(--primary-main);
}

/* Productos */
.product-item {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bg-light);
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.product-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-item:hover {
    background: var(--bg-lighter);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.product-thumbnail {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 140px;
    display: block;
}

.product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.25rem;
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a:hover {
    color: var(--primary-main);
}

.product-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Widget CTA */
.cta-widget {
    background: linear-gradient(135deg, var(--primary-main) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.cta-content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    stroke: white;
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.cta-description {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-medium);
}

.cta-button:hover {
    background: var(--bg-lighter);
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark);
}

.button-icon {
    width: 1rem;
    height: 1rem;
}

/* Mensaje cuando no hay elementos */
.no-items {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    padding: 1rem 0;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .modern-sidebar {
        gap: 1.25rem;
        padding: .825rem;
    }

    .widget-header,
    .widget-content,
    .search-widget {
        padding: 0.725rem;
    }

    .recent-post-item:hover,
    .product-item:hover {
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .post-thumbnail,
    .product-thumbnail {
        height: 120px;
    }
}

@media (max-width: 768px) {
    .modern-sidebar {
        gap: 1rem;
        padding: 0.625rem;
    }

    .post-thumbnail,
    .product-thumbnail {
        height: 100px;
    }

    .cta-content {
        padding: 1.25rem;
    }
}

/* Estados de focus */
.search-input:focus,
.recent-post-title a:focus,
.product-title a:focus,
.cta-button:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.site-description {
    font-size: 1rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== RESPONSIVE PADDING FIX ===== */
/* Solución global para evitar que los textos se peguen a los bordes en móvil */
@media (max-width: 768px) {

    .curso-container,
    .diplomado-container,
    .container,
    .site-content .wrapper,
    section:not(.full-width)>.content-wrapper,
    .entry-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100%;
        box-sizing: border-box;
    }

    /* Asegurar que las imágenes no desborden */
    img,
    video,
    iframe {
        max-width: 100% !important;
        height: auto;
    }
}

/* ===== HEADER & HERO FIXES ===== */
.site-header {
    z-index: 9999 !important;
}

/* Fix especifico para pagina Nosotros - Evitar solapamiento con header */
.hero-nosotros {
    padding-top: 100px !important;
}

@media (max-width: 768px) {
    .hero-nosotros {
        padding-top: 120px !important;
        align-items: flex-start !important;
    }

    /* Regla adicional para asegurar paddings en contenedores genéricos */
    div[class*="container"] {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* EXCEPCIONES: Resetear padding para contenedores internos de formularios */
    .form-group[class*="container"],
    div[id*="container-mobile"],
    .js-virtual-container,
    .modalidad-container,
    .js-price-container,
    .js-pais-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}