/* ============================= */
/* RESET */
/* ============================= */

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

/* ============================= */
/* TIPOGRAFÍA */
/* ============================= */

body{
    font-family:'Manrope', sans-serif;
    font-weight:400;
    line-height:1.6;
    color:#334155;
    background:#f1f5f9;
    max-width:1100px;
    margin:0 auto;
    padding:1rem;
}

h1,h2,h3,h4{
    font-family:'Spectral', Georgia, serif;
    font-weight:500;
    color:#1e293b;
    letter-spacing:-0.015em;
    margin-bottom:1rem;
}

/* ============================= */
/* HEADER */
/* ============================= */

.site-header{
    background:white;
    border-bottom:1px solid #e2e8f0;
}

.site-header-inner{
    max-width:1100px;
    margin:0 auto;
    padding:1rem;
    display:flex;
    align-items:center;
    gap:1rem;
}

.logo{
    height:70px;
    width:auto;
    max-width:260px;
    display:block;
}

/* ============================= */
/* BUSCADOR HEADER */
/* ============================= */

.header-search{
    margin-left:auto;
    display:flex;
    gap:0.5rem;
}

.header-search input{
    padding:0.4rem 0.6rem;
    border:1px solid #cbd5e1;
    border-radius:6px;
}

.header-search button{
    padding:0.4rem 0.8rem;
    border:none;
    border-radius:6px;
    background:#3b82f6;
    color:white;
    cursor:pointer;
}

.header-search button:hover{
    background:#2563eb;
}

/* ============================= */
/* NAV */
/* ============================= */

.site-nav{
    background:#1e293b;
}

.site-nav-inner{
    max-width:1100px;
    margin:0 auto;
    padding:0.7rem 1rem;
    display:flex;
    gap:1rem;
    flex-wrap:wrap;
}

.site-nav a{
    color:#f1f5f9;
    text-decoration:none;
    font-weight:500;
    padding:0.5rem 1rem;
    border-radius:6px;
}

.site-nav a:hover{
    background:#3b82f6;
}

/* ============================= */
/* MAIN */
/* ============================= */

main{
    background:white;
    border-radius:14px;
    padding:2.5rem;
    margin-top:2rem;
    box-shadow:0 10px 35px rgba(0,0,0,0.08);
}

/* ============================= */
/* HERO */
/* ============================= */

.hero-ojs{
    background:
    linear-gradient(rgba(30,41,59,.75), rgba(30,41,59,.75)),
    url("/static/images/hero-ojs.svg");
    background-size:cover;
    background-position:center;
    padding:5rem 2rem;
    border-radius:14px;
    margin-bottom:3rem;
    color:white;
}

.hero-content{
    max-width:650px;
}

.hero-ojs h1{
    font-size:2.4rem;
    margin-bottom:1rem;
    color:white;
}

.hero-ojs p{
    font-size:1.15rem;
    opacity:.9;
}

/* ============================= */
/* BOTONES */
/* ============================= */

.cta-button{
    display:inline-block;
    margin-top:1rem;
    padding:0.9rem 1.8rem;
    background:#2563eb;
    color:white;
    text-decoration:none;
    border-radius:10px;
    font-weight:600;
    transition:all .2s ease;
}

.cta-button:hover{
    background:#1d4ed8;
}

/* ============================= */
/* SERVICIOS */
/* ============================= */

.home-services{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:2rem;
    margin-top:2rem;
}

.service-card{
    background:white;
    padding:2rem;
    border-radius:14px;
    text-align:center;
    box-shadow:0 12px 30px rgba(0,0,0,0.08);
    transition:all .2s ease;
}

.service-card:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,0,0,0.12);
}

.service-icon{
    font-size:2.5rem;
    margin-bottom:1rem;
}

.service-card h2{
    font-size:1.25rem;
    margin-bottom:.6rem;
}

.service-card p{
    color:#475569;
}

/* ============================= */
/* CONTACTO */
/* ============================= */

.home-contact{
    margin-top:3rem;
    text-align:center;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.site-footer{
    margin-top:2rem;
    background:#e2e8f0;
    padding:2rem;
    text-align:center;
    border-radius:12px;
    color:#475569;
}

.site-footer a{
    color:#334155;
    text-decoration:none;
}

.site-footer a:hover{
    text-decoration:underline;
}

/* ============================= */
/* CONTACT PAGE */
/* ============================= */

.contact-layout{
    display:grid;
    grid-template-columns:1fr 1.6fr;
    gap:2rem;
}

.contact-copy,
.contact-form-card{
    background:#f8fafc;
    border-radius:14px;
    padding:1.75rem;
    box-shadow:0 4px 18px rgba(0,0,0,0.04);
}

.contact-form{
    display:flex;
    flex-direction:column;
    gap:1.2rem;
}

.form-row{
    display:flex;
    flex-direction:column;
    gap:0.5rem;
}

.form-row input,
.form-row textarea,
.form-row select{
    padding:0.9rem 1rem;
    border:1px solid #cbd5e1;
    border-radius:8px;
    font-size:1rem;
}

/* ============================= */
/* DOI SEARCH (CORRECTO) */
/* ============================= */

.doi-search-box {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    max-width: 650px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: white;
}

.input-group input {
    flex: 1;
    padding: 0.9rem 1rem;
    border: none;
    font-size: 0.95rem;
    outline: none;
}

.input-group button {
    background: #2563eb;
    color: white;
    padding: 0 1.4rem;
    border: none;
    font-weight: 500;
    cursor: pointer;
}

.input-group button:hover {
    background: #1d4ed8;
}

.input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width:900px){
    .contact-layout{
        grid-template-columns:1fr;
    }

    .home-services{
        grid-template-columns:1fr;
    }
}

@media (max-width:768px){
    body{
        padding:0.5rem;
    }

    .site-header-inner{
        flex-direction:column;
        align-items:center;
    }

    .site-nav-inner{
        justify-content:center;
    }
}

@media (max-width:600px){
    .input-group {
        flex-direction: column;
    }

    .input-group button {
        padding: 0.8rem;
        width: 100%;
    }
}
