/* ================================
   CONTACTO
================================ */

.seccion-contacto {
    padding: 90px 0;
    background: linear-gradient(135deg, #f2f4f8, #e8ecf1);
}

.contacto-container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ================================
   REDES
================================ */

.contacto-redes {
    display: flex;
    flex-direction: column;
}

.contacto-redes h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #0D0D0D;
    position: relative;
    display: inline-block;

    background: linear-gradient(
        120deg,
        #0D0D0D 40%,
        #A62490 48%,
        #BF7EB4 50%,
        #A62490 52%,
        #0D0D0D 60%
    );

    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: brilloTexto 8s infinite;
}

@keyframes brilloTexto {
    0% { background-position: -200% 0; }
    12% { background-position: 200% 0; }
    100% { background-position: 200% 0; }
}

.contacto-redes p {
    color: #444;
    margin-bottom: 30px;
}

/* ================================
   TARJETAS REDES
================================ */

.red-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    margin-bottom: 18px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    transition: box-shadow 0.3s ease, filter 0.3s ease;
}

.red-card i {
    font-size: 28px;
}

.red-card.youtube { background: #FF0000; }
.red-card.tiktok { background: linear-gradient(135deg, #000000, #25F4EE); }
.red-card.whatsapp { background: #25D366; }
.red-card.facebook { background: #1877F2; }
.red-card.instagram {
    background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf);
}

.red-card:hover {
    box-shadow: 0 18px 40px rgba(0,0,0,0.3);
    filter: brightness(1.05);
}

.red-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.45) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    background-position: -200% 0;
    animation: shineSafe 8s infinite;
    pointer-events: none;
}

@keyframes shineSafe {
    0% { background-position: -200% 0; }
    20% { background-position: 200% 0; }
    100% { background-position: 200% 0; }
}

/* ================================
   FORMULARIO MD
================================ */

.formulario {
    background: #A6A6A6;
    padding: 45px;
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: 0 18px 45px rgba(100,39,140,0.15);
    border: 1px solid rgba(166,36,144,0.2);
}

.formulario label {
    display: block;
    margin-top: 18px;
    font-weight: 600;
    color: #A62490;
}

/* 🔥 REGLA GLOBAL PARA QUE TODOS MIDAN IGUAL */
.formulario input,
.formulario textarea,
.iti input {
    width: 100% !important;
    height: 50px !important;
    padding: 0 14px !important;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f4f4f4;
    font-size: 14px;
    box-sizing: border-box;
}

/* Textarea altura diferente */
.formulario textarea {
    height: 120px !important;
    padding-top: 12px !important;
}

/* Focus elegante */
.formulario input:focus,
.formulario textarea:focus,
.iti input:focus {
    outline: none;
    border-color: #A62490;
    box-shadow: 0 0 0 3px rgba(166,36,144,0.15);
}

/* ================================
   intl-tel-input FIX DEFINITIVO
================================ */

.iti {
    width: 100%;
}

.iti input {
    padding-left: 90px !important;
}

.iti__selected-flag {
    height: 50px !important;
    display: flex;
    align-items: center;
}

/* ================================
   BOTÓN
================================ */

.formulario button {
    margin-top: 30px;
    padding: 15px;
    width: 100%;
    background: linear-gradient(135deg, #64278C, #A62490);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.formulario button:hover {
    background: linear-gradient(135deg, #BF7EB4, #A62490);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100,39,140,0.3);
}

/* ================================
   MENSAJE ÉXITO
================================ */

.exito {
    background: #f3e6f8;
    padding: 14px;
    border-radius: 8px;
    color: #64278C;
    margin-bottom: 18px;
    font-weight: 600;
    border-left: 4px solid #A62490;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
    .contacto-container {
        grid-template-columns: 1fr;
    }

    .red-card {
        justify-content: center;
    }
}
