/* ==========================================================================
   CASTRACIONES FORM STYLES — Full Width + Modern Design
   ========================================================================== */

/* Sección principal que ocupa todo el ancho */
.crecienta-castraciones-page {
    display: block;
    width: 100%;
}

/* Sección de fondo full-width — misma estética que la grilla de promos */
.crecienta-castraciones-section {
    width: 100%;
    min-height: calc(100vh - 100px);
    padding: 60px 24px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Fondo con patrón de huellas — mismo estilo que "Ofertas del Mes" */
    background-color: #f0eeff;
    background-image:
        /* Huellas grandes fondo */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%236b2c91' fill-opacity='0.06'%3E%3Cellipse cx='36' cy='20' rx='8' ry='11'/%3E%3Cellipse cx='60' cy='12' rx='7' ry='10'/%3E%3Cellipse cx='84' cy='20' rx='8' ry='11'/%3E%3Cellipse cx='24' cy='40' rx='7' ry='10'/%3E%3Cellipse cx='96' cy='40' rx='7' ry='10'/%3E%3Cpath d='M60 100 C35 80 20 60 28 50 C36 40 48 48 60 60 C72 48 84 40 92 50 C100 60 85 80 60 100Z'/%3E%3C/g%3E%3C/svg%3E"),
        /* Huesos pequeños como accent */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23f78c1e' fill-opacity='0.05'%3E%3Ccircle cx='8' cy='8' r='5'/%3E%3Ccircle cx='52' cy='8' r='5'/%3E%3Ccircle cx='8' cy='52' r='5'/%3E%3Ccircle cx='52' cy='52' r='5'/%3E%3Crect x='8' y='27' width='44' height='6' rx='3'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px, 60px 60px;
    background-position: 0 0, 30px 30px;
    position: relative;
}

/* Gradiente suave encima del patrón */
.crecienta-castraciones-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(107, 44, 145, 0.04) 0%, rgba(247, 140, 30, 0.04) 100%);
    pointer-events: none;
}

/* Card central — glassmorphism */
.crecienta-castraciones-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 50px 48px;

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    box-shadow:
        0 32px 64px rgba(107, 44, 145, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

/* Barra decorativa superior con gradiente de marca */
.crecienta-castraciones-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6b2c91 0%, #f78c1e 50%, #48a9df 100%);
    border-radius: 28px 28px 0 0;
}

/* Header del formulario */
.crecienta-castraciones-header {
    text-align: center;
    margin-bottom: 44px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(107, 44, 145, 0.08);
}

.crecienta-castraciones-header h2 {
    font-size: clamp(26px, 4.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1a202c;
    margin-bottom: 14px;
}

.crecienta-castraciones-header p {
    color: #555;
    font-size: 17px;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto;
}

.crecienta-castraciones-header strong {
    color: #f78c1e;
    font-weight: 700;
}

/* Formulario */
.crecienta-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.crecienta-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.crecienta-form-group {
    flex: 1 1 calc(50% - 11px);
    min-width: 220px;
    display: flex;
    flex-direction: column;
}

.crecienta-form-group.full-width {
    flex: 1 1 100%;
    min-width: 100%;
}

.crecienta-form-group label {
    font-weight: 700;
    margin-bottom: 9px;
    color: #2d3748;
    font-size: 13.5px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.crecienta-form-group input[type="text"],
.crecienta-form-group input[type="tel"],
.crecienta-form-group select {
    box-sizing: border-box;
    padding: 14px 18px;
    line-height: 1.2;
    min-height: 52px;
    border: 2px solid #e8e0f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fdfaff;
    color: #1a202c;
    width: 100%;
    display: block;
    vertical-align: middle;
}

.crecienta-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3748' 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 14px center;
    background-size: 16px;
    padding-right: 44px;
    /* Forzar que el option seleccionado sea visible en todos los browsers */
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crecienta-form-group input[type="file"] {
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 2px dashed #d1b8e8;
    border-radius: 12px;
    background: #faf6ff;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
}

.crecienta-form-group input[type="file"]:hover {
    border-color: #6b2c91;
    background: #f3e5f5;
}

.crecienta-form-group input:focus,
.crecienta-form-group select:focus {
    border-color: #6b2c91;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(107, 44, 145, 0.12);
    transform: translateY(-1px);
}

/* Subtítulo de sección interna */
.crecienta-form-subtitle {
    font-size: 19px;
    font-weight: 800;
    color: #2d2d2d;
    margin: 12px 0 4px;
    padding-left: 14px;
    border-left: 4px solid #f78c1e;
}

/* Submit */
.crecienta-form-submit {
    text-align: center;
    margin-top: 36px;
}

.crecienta-form-submit button {
    background: linear-gradient(135deg, #f78c1e 0%, #d96b00 100%);
    color: white;
    font-weight: 800;
    font-size: 17px;
    padding: 17px 44px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(247, 140, 30, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: inherit;
}

.crecienta-form-submit button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(247, 140, 30, 0.45);
    background: linear-gradient(135deg, #ff9d2f 0%, #e67b10 100%);
}

.crecienta-form-submit button:active {
    transform: translateY(0) scale(0.99);
}

/* Alertas */
.crecienta-alert {
    padding: 18px 24px;
    border-radius: 14px;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
}

.crecienta-alert--success {
    background-color: #f0fdf4;
    color: #14532d;
    border: 1.5px solid #bbf7d0;
}

.crecienta-alert--error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1.5px solid #fecaca;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .crecienta-castraciones-section {
        padding: 32px 16px;
    }

    .crecienta-castraciones-wrapper {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .crecienta-form-group {
        flex: 1 1 100%;
        min-width: 100%;
    }
}
