/* =========================
   CONTACTO
========================= */

.contact-hero {
    padding: 140px 0 100px;
    background: var(--cream);
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--deep-green);
    color: var(--cream);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 18px;
}

/* Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Card - Diseño limpio, tipo tarjeta */
.contact-card {
    position: relative;
    min-height: 350px;
    background: #ffffff; /* Fondo completamente blanco y sólido */
    border: 1px solid rgba(0,0,0,0.05); /* Borde súper sutil */
    border-radius: 20px; /* Bordes redondeados elegantes */
    padding: 38px 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04); /* Sombra suave para que "floten" y se separen del fondo */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); /* La sombra crece sutilmente al pasar el mouse */
}

/* Toque de color en el borde superior de cada tarjeta */
.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--sage);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Eliminamos el .contact-card::after que tenía el degradado radial extraño */

/* Iconos */
.contact-icon {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 24px;
}

.contact-card h3 {
    position: relative;
    z-index: 2;
    color: var(--deep-green);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.contact-card p {
    position: relative;
    z-index: 2;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 28px;
}

/* Alineación de botones hacia abajo */
.contact-card a.btn-primary {
    position: relative;
    z-index: 2;
    margin-top: auto;
    width: auto;
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    color: #ffffff !important;
}

/* Formulario */
.contact-form-card {
    align-items: stretch;
    padding-bottom: 30px;
}

.contact-form-card .contact-icon,
.contact-form-card h3,
.contact-form-card p {
    align-self: center;
}

.contact-form-card form {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    background: #fafafa;
    padding: 15px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--deep-green);
    outline: none;
    transition: border 0.3s, background 0.3s;
}

/* Efecto al escribir en los campos */
.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: var(--sage);
    background: #ffffff;
}

.contact-form-card textarea {
    resize: none;
}

.contact-form-card button {
    width: 100%;
    cursor: pointer;
    border: none !important;
    padding: 15px !important;
    color: #ffffff !important;
    font-weight: bold;
    border-radius: 12px;
    background: var(--deep-green);
    transition: opacity 0.3s;
}

.contact-form-card button:hover {
    opacity: 0.9;
}

/* Responsive */
@media(max-width:900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-card { min-height: auto; max-width: 620px; width: 100%; margin: 0 auto; }
}

/* Iconos Específicos */
.contact-icon-whatsapp { background: #25D366; color: #ffffff; }
.contact-icon-instagram { background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737, #FCAF45); color: #ffffff; }
.contact-icon-gmail { 
    background: linear-gradient(135deg, #5F7CF7, #7C97FF); 
    color: #ffffff; 
    border: none; 
    box-shadow: 0 16px 34px rgba(95,124,247,.18);
}