
/* Colores */
:root {
    --background-color: #ffffff;
    --font-color: #616161;
    --default-color: #2F2828;
    --second-color: #E7A80F;
    --heading-color: #232020;
    --footer-color: #3E3D3D;
    --white-color: #ffffff;
    --gray-color: #808080;
    --black-color: #000000;
    --link-color: #E7A80F;
    --link-hover-color: #F0D276;
    --light: #E8F5E9;
}


/* Fuentes */
:root {
    --primary-font: "Montserrat", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --heading-font: "Manrope", sans-serif;
}

/* Men� */
:root {
    --nav-normal: #4E4747;
    --nav-hover: #A1A762;
}

/* Scroll */
:root {
  scroll-behavior: smooth;
}



body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--primary-font);
    height: 100%;
	margin: 0;
	padding: 0;
}

html {
    height: 100%;
	margin: 0;
	padding: 0;
}

form {
    height: 100%;
	margin: 0;
	padding: 0;
}

.wrapper {
  display: flex;
  height: 100%;
  flex-direction: column;
  -ms-flex-direction: column;
  background: var(--background-color);
}

/********************************* HEADER *************************************/

header {
    width: 100%;
}

/* ── Header principal ── */
.header-principal {
    background: #1a1f2e;
    border-bottom: 5px solid var(--second-color);
    padding: .6rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Brand */
.header-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.header-brand-logo {
    max-height: 80px;
    width: auto;
    height: auto;
}

.header-brand-sep {
    display: inline-block;
    width: 1px;
    height: 2rem;
    background: #E7A80F;
    flex-shrink: 0;
}

.header-brand-sub {
    font-size: .9rem;
    color: rgba(255,255,255);
    font-weight: 400;
    /*max-width: 240px;*/
    line-height: 1.3;
}

/* Login */
.header-login {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.header-input-wrap {
    display: flex;
    flex-direction: column;
}

.header-input {
    width: 200px;
}

.header-validator {
    font-size: .75rem;
    line-height: 1.2;
    margin-top: 2px;
    display: block;
}

.header-input-icon {
    background: #fff;
    border-color: #ced4da;
    border-right: none;
    color: #6c757d;
}

.header-login .form-control {
    background: #fff;
    border-color: #ced4da;
    border-left: none;
    color: #212529;
}

.header-login .form-control::placeholder {
    color: #adb5bd;
}

.header-login .form-control:focus {
    background: #fff;
    border-color: var(--second-color);
    border-left: none;
    color: #212529;
    box-shadow: none;
}

.header-login .input-group:focus-within .input-group-text {
    border-color: var(--second-color);
}

.header-btn {
    white-space: nowrap;
    letter-spacing: -0.5px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.header-validator {
    font-size: .85rem;
    width: 100%;
    margin-top:5px;
    color: #F0D276 !important;
}

.header-msg {
    display: block;
    font-size: .8rem;
    text-align: right;
    min-height: 1rem;
}

/********************************* END-HEADER *************************************/


main {
  flex: 1;
  background:#ffffff;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.btn-warning {
    color: var(--second-color);
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-acceso {
    background-color: var(--second-color);
    border-color: var(--second-color);
    color:#3E3D3D;
    font-weight:600;
    text-transform: uppercase;
}

.btn-acceso:hover {
    background-color: #c98e0d;
    border-color: #c98e0d;
}


/********************************* FOOTER *************************************/
footer {
    width: 100%;
}

.custom-footer {
    padding: 2rem 0 4rem 0;
    background-color: var(--footer-color);
    border-top: .05rem solid #e5e5e5;
    position: relative;
    bottom: 0;
    width: 100%;
}

    .custom-footer p {
        font-size: 0.9rem;
        color: var(--white-color);
    }

    .custom-footer a {
        font-size: 0.9rem;
    }

    .custom-footer h6 {
        color: var(--white-color);
        font-family: var(--heading-font);
        font-size: 1rem;
        font-weight: 500;
    }

    .custom-footer .contacts {
        background: rgba(255, 255, 255, 0.05);
        padding: 37px;
        border-bottom: 2px solid #F0D276;
        min-height: 300px;
        margin-bottom: 1rem;
    }

        .custom-footer .contacts h6 {
            color: var(--white-color);
            font-size: 1rem;
        }

        .custom-footer .contacts p {
            color: var(--white-color);
            font-size: 0.8rem;
            margin-bottom: 0.2rem;
        }

    .custom-footer .container {
        width: 100%;
        max-width: 1400px;
    }

/*********************************END-FOOTER*************************************/





a {
    color: var(--link-color);
    text-decoration: none;
    transition: 0.3s;
}

    a:hover {
        color: var(--link-hover-color);
        text-decoration: none;
    }

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}


.clearfix:after {
    content: "";
    display: block;
    clear: both;
}

.titulo h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
    color: color-mix(in srgb, #2F2828 90%, #3E3D3D 15%);
    transition: .5s;
}

@media (max-width: 768px) {
    .titulo h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .titulo h2 {
        font-size: 1.2rem;
    }
}


@keyframes slideInFromLeft {
    0% {
       /* transform: translateX(-100%);*/
        opacity: 0;
       
    }

    100% {
        /*transform: translateX(0);*/
        opacity: 0.9;
    }
}
/*.image-primera {
    animation-duration: 3s;
    animation-name: slideInFromLeft;
}*/

.fondo-imagen2 {
    background: rgba(248,238,153,0.5);
    background-size: cover;
    background-position: center center;
    z-index: 1000;
    padding-bottom: 6rem;
    padding-top: 6rem;
    margin-bottom: 0.5rem;
    transition: .5s;
}

.rounded-border {
    border-radius: 8px !important;
    border: 1px solid #EDDD5E;
    width: 100%;
    height: auto;
    padding: 2rem;
    text-align: center;
}



/******************** Foto header ********************/
.fondo-header {
    background: linear-gradient(rgba(248, 238, 153, 0.7), rgba(248, 238, 153, 0.7)), url(../../images/home/ovejas.jpg) center center no-repeat;
    background-size: cover;
}

    .fondo-header h1 {
        font-size: 2.6rem;
        font-weight: 400;
        line-height: 1.2;
        color: var(--white-color);
        transition: .5s; 
        text-shadow: 1px 2px 3px #808080;
    }

        @media (max-width: 576px) {
            .fondo-header h1 {
                font-size: 1.5rem;
            }
        }


.text-bold {
    font-weight: 500 !important;
}

@media (min-width: 1200px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: 1280px;
    }
}





/* =========================
   PORTADA — CSS Grid ≥md
   ========================= */

/* móvil: columna simple */
.portada {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.logo-aragon img,
.caballos img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-aragon { align-self: flex-start; margin-right: auto; }
.logo-aragon img  { max-width: 180px; }
/*.caballos img     { max-width: 320px; }*/

/* ≥ md (768px): Grid 2 col × 1 fila */
@media (min-width: 768px) {

    .portada {
        display: grid;
        grid-template-columns: 250px 1fr;
        grid-template-rows: auto;
        grid-template-areas: "logo equidos";
        align-items: center;
        gap: 0;
        padding: 1.5rem 0 0;
        position: relative;
    }

    .logo-aragon { grid-area: logo; align-self: start; }
    .caballos    { grid-area: equidos; align-self: center; justify-self: start; text-align: left; }

    .logo-aragon,
    .caballos { position: relative; z-index: 1; }

    .logo-aragon img { max-width: 180px; }
    .caballos img    { max-width: 100%; width: 520px; }

    
}

/* ≥ lg (992px) */
@media (min-width: 992px) {
    .portada {
        grid-template-columns: 380px 1fr;
        min-height: 420px;
    }
    .logo-aragon img {
        max-width: 300px;
    }
    .caballos img     { width: 650px; }
}

/* ≥ xl (1200px) */
@media (min-width: 1200px) {
    .portada {
        grid-template-columns: 380px 1fr;
        min-height: 460px;
    }
    .caballos img     { width: 800px; }
}


/* Colegio fuera del grid, se superpone por abajo */
.colegio {
    position: relative;
    z-index: 2;
    margin-top: 0px;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .colegio {
        margin-top: -30px;
    }
}

@media (min-width: 992px) {
    .colegio {
        margin-top: -60px;
    }
}


    .bloque-colegio {
        display: inline-flex;
        align-items: center;
        gap: 1rem;
    }

    .escudo-colegio-img {
        height: 52px;
        width: auto;
        flex-shrink: 0;
    }

    .bloque-colegio::after {
        content: none;
    }

    .bloque-colegio-texto {
        display: flex;
        flex-direction: column;
        border-left: 2px solid #E7A80F;
        padding-left: 1rem;
        line-height: 1.4;
    }



    .bloque-colegio-normal {
        font-size: 0.75rem;
        color: #555;
        font-weight: 400;
    }

    .bloque-colegio-bold {
        font-size: 0.78rem;
        color: #222;
        font-weight: 700;
    }

    @media (min-width: 992px) {

        .bloque-colegio-normal {
            font-size: 0.82rem;
        }

        .bloque-colegio-bold {
            font-size: 0.88rem;
        }
    }


    /* =========================
   SERVICIOS
   ========================= */

    .card-servicio {
        border: 1px solid #e9ecef;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,.06);
        transition: box-shadow .2s, transform .2s;
    }

        .card-servicio:hover {
            box-shadow: 0 6px 20px rgba(0,0,0,.1);
            transform: translateY(-2px);
        }

    .card-servicio-icono {
        flex-shrink: 0;
        width: 72px;
        height: 72px;
        background: #FFF8EC;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .card-servicio-icono i {
            font-size: 1.8rem;
            color: var(--second-color);
        }

    .card-servicio-titulo {
        font-size: 1rem;
        font-weight: 600;
        color: #212529;
        margin-bottom: .4rem;
    }

    .card-servicio-desc {
        font-size: .85rem;
        color: #6c757d;
        line-height: 1.5;
        margin-bottom: .75rem;
    }

    .card-servicio-link {
        font-size: .85rem;
        font-weight: 500;
        color: var(--link-color);
        text-decoration: none;
    }

        .card-servicio-link span {
            display: inline-block;
            transition: transform .15s;
        }

        .card-servicio-link:hover span {
            transform: translateX(4px);
        }


    .border-gray {
        border-color: #e9ecef !important;
    }