/* Estilos de contacto.php (antes estaban dentro de la página). */
:root{
    --rosa:#d85b87;
    --rosa-claro:#fff4f8;
    --rosa-borde:#efc8d6;
    --texto:#2f2f2f;
    --texto-sec:#666;
    --blanco:#ffffff;
    --ok-bg:#eaf8ee;
    --ok-text:#22663b;
    --ok-border:#b7e1c3;
    --error-bg:#fff1f1;
    --error-text:#9b1f1f;
    --error-border:#efc0c0;
    --sombra:0 8px 24px rgba(0,0,0,.08);
    --radio:18px;
    --max:1200px;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#fcfcfd;
    color:var(--texto);
    line-height:1.6;
}

a{
    color:inherit;
    text-decoration:none;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus{
    outline:3px solid #222;
    outline-offset:3px;
}

.skip-link{
    position:absolute;
    left:-9999px;
    width:1px;
    height:1px;
    overflow:hidden;
}

.skip-link:focus{
    left:16px;
    top:16px;
    width:auto;
    height:auto;
    padding:10px 14px;
    background:#000;
    color:#fff;
    border-radius:10px;
    z-index:9999;
}

.contacto-hero{
    background:linear-gradient(180deg, #fff7fa 0%, #ffffff 100%);
    padding:42px 20px 24px;
    border-bottom:1px solid #f3e3e9;
}

.contacto-hero__inner{
    max-width:var(--max);
    margin:0 auto;
    width:min(100%, 1160px);
}

.contacto-hero h1{
    margin:0 0 10px;
    color:var(--rosa);
    font-size:2rem;
    line-height:1.2;
}

.contacto-hero p{
    margin:0;
    max-width:780px;
    font-size:1.06rem;
}

.contacto-wrap{
    max-width:var(--max);
    margin:0 auto;
    padding:28px 20px 48px;
    width:min(100%, 1160px);
}

.contacto-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:24px;
    align-items:start;
}

.contacto-card{
    background:var(--blanco);
    border:1px solid var(--rosa-borde);
    border-radius:var(--radio);
    box-shadow:var(--sombra);
    padding:24px;
    min-width:0;
}

.contacto-card h2{
    margin:0 0 10px;
    color:var(--rosa);
    font-size:1.45rem;
    line-height:1.25;
}

.contacto-card .subtexto{
    margin:0 0 18px;
    color:var(--texto-sec);
}

.especialista-box{
    background:var(--rosa-claro);
    border:1px solid #f2d7e0;
    border-radius:16px;
    padding:18px;
    margin-bottom:16px;
}

.especialista-box h3{
    margin:0 0 8px;
    font-size:1.12rem;
    color:#333;
    line-height:1.3;
}

.especialista-box p{
    margin:6px 0;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.btn-mail{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    max-width:100%;
    margin-top:12px;
    background:var(--rosa);
    color:#fff;
    padding:14px 18px;
    border-radius:16px;
    font-weight:700;
    min-height:52px;
    text-align:center;
}

.btn-mail:hover{
    opacity:.95;
}

.alert{
    border-radius:14px;
    padding:14px 16px;
    margin-bottom:16px;
}

.alert.ok{
    background:var(--ok-bg);
    color:var(--ok-text);
    border:1px solid var(--ok-border);
}

.alert.error{
    background:var(--error-bg);
    color:var(--error-text);
    border:1px solid var(--error-border);
}

.campo{
    margin-bottom:18px;
}

label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
    color:#8c0f58;
    font-size:1rem;
}

input,
select,
textarea{
    width:100%;
    padding:15px 16px;
    border:1px solid #d2d2da;
    border-radius:18px;
    font-size:16px;
    background:#fff;
    color:#222;
    appearance:none;
    -webkit-appearance:none;
}

select{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5 7 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 16px center;
    background-size:20px;
    padding-right:48px;
}

textarea{
    min-height:160px;
    resize:vertical;
}

.btn-submit{
    border:none;
    background:var(--rosa);
    color:#fff;
    padding:14px 18px;
    border-radius:16px;
    font-size:1rem;
    font-weight:700;
    cursor:pointer;
    min-height:52px;
    width:100%;
}

.ayuda-texto{
    font-size:.95rem;
    color:var(--texto-sec);
    margin-top:-2px;
    margin-bottom:14px;
}

@media (max-width: 1024px){
    .contacto-wrap{
        padding-left:16px;
        padding-right:16px;
    }

    .contacto-hero{
        padding-left:16px;
        padding-right:16px;
    }
}

@media (max-width: 820px){
    .contacto-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .contacto-hero{
        padding:28px 14px 18px;
    }

    .contacto-wrap{
        padding:18px 12px 32px;
    }

    .contacto-card{
        padding:18px 16px;
        border-radius:20px;
    }

    .especialista-box{
        padding:16px 14px;
        margin-bottom:14px;
    }

    .contacto-hero h1{
        font-size:1.7rem;
    }

    .contacto-hero p{
        font-size:1rem;
    }

    .contacto-card h2{
        font-size:1.3rem;
    }

    .btn-mail,
    .btn-submit{
        width:100%;
    }
}

@media (max-width: 480px){
    .contacto-hero{
        padding:22px 12px 14px;
    }

    .contacto-wrap{
        padding:14px 10px 28px;
    }

    .contacto-card{
        padding:16px 14px;
        border-radius:18px;
    }

    .especialista-box{
        padding:14px 12px;
        border-radius:14px;
    }

    .contacto-card h2{
        font-size:1.2rem;
    }

    .contacto-hero h1{
        font-size:1.5rem;
    }

    label{
        font-size:.98rem;
    }

    input,
    select,
    textarea{
        padding:14px 14px;
        border-radius:16px;
    }
}

