﻿@font-face {
    font-family: 'orkney';
    src: url('/webfonts/orkney-regular-webfont.woff') format('woff'), url('/webfonts/orkney-regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bs-primary-rgb: 30,67,150;
    --bs-primary: #1e4296;
}

.btn-primary {
    background-color: #1e4296;
    border-color: #1e4296;
    --bs-btn-color: #fff;
    --bs-btn-bg: #1e4296;
    --bs-btn-border-color: #1e4296;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #1e4296;
    --bs-btn-disabled-border-color: #1e4296;
}

.btn-outline-primary {
    border-color: #1e4296;
    color: #1e4296;
    --bs-btn-color: #1e4296;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #1e4296;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1e4296;
    --bs-btn-hover-border-color: #1e4296;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1e4296;
    --bs-btn-active-border-color: #1e4296;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #f0f0f0;
    --bs-btn-disabled-border-color: #1e4296;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    overflow-x: hidden;
}
body {
    font-family: 'Montserrat', verdana;
    padding-top: 115px;
    overflow-x: hidden;
}
#map {
    height: 400px; /* The height is 400 pixels */
    width: 100%; /* The width is the width of the web page */
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 30px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-direction: row;
}
ul {
    list-style: cross-fade();
    padding: 0px 30px;
}

a, a:active, a:visited {
    color: #787676;
    text-decoration: none;
}
    a.btn-primary, a.btn-primary:active, a.btn-primary:visited,
    a.btn-dark, a.btn-dark:active, a.btn-dark:visited
    {
        color: #fff;
        text-decoration: none;
    }
    a:hover {
        color: #000000;
    }
    .cuerpo {
        width: 80%;
        margin: 0 auto;
        min-height: calc(100vh - 213px);
        padding-bottom: 40px;
    }

    p {

        text-align: justify;
    }

.centrado {
    display: block;
    margin: 0 auto;
}
.logo {
    font-size: 28px;
    font-weight: bold;
    color: #0072c6;
}               

    .logo span {
        color: #00a0df;
    }

    .navI {
        position: relative;
        background: white;
        padding: 0;
        display: flex;
        justify-content: space-between;
        align-items:center;
    }

    .menu-toggle {
        display: none;
        font-size: 24px;
        cursor: pointer;
    }
    .menu-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-grow: 1;
        margin-top: 12px;
    }
    ul.menu {
        list-style: none;
        display: flex;
        gap: 13px;
        flex-wrap: wrap;
        flex-grow: 1;
        justify-content: center;
        margin:0px;
    }

    .menu li {
        position: relative;
    }

    .menu li a,
    .menu li span.dropdown2-toggle {
        text-decoration: none;
        color: #000;
        cursor: pointer;
        display: block;
        padding: 8px 5px;
    }
    .menu li a:hover,
    .menu li span.dropdown2-toggle:hover {
        background: #fafafa;
        color: red;
    }

    /* Submenus */
    .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #e8e8e8;
        border: 1px solid #aaa;
        min-width: 180px;
        z-index: 10;
        list-style-type: none;
        padding: 0;
    }

    .submenu li {
        position: relative;
    }

    .submenu .submenu {
        left: 100%;
        top: 0;
    }

    /* Hover for desktop */
    .menu li:hover > .submenu {
        display: block;
    }

    .social-icons {
        display: flex;
        gap: 5px;
        font-size: 16px;
    }

    .social-icons a {
        color: #000;
        border-radius: 50%;
        padding: 3px 5px;
        text-align: center;
        display: inline-block;
    }
    .imagen-principal img {
        width: 100%;
        max-height: 300px;
        
        object-fit: cover;
        object-position: top;
    }

/* Texto central */
.texto-central {
    padding: 20px;
    text-align: justify;
}

    .galeria {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 20px;
   
    }

    .calidad{
        border: 1px solid #000000;
        background-color: #e2dada;
    }
    .foto img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }
    /* Bloques con imagen y texto */
.bloque {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px;
    gap: 80px;
    flex-wrap: nowrap; 
}
.bInvertido {
    flex-direction: row-reverse;
}
    .bloqueInvertido {
        flex-direction: row-reverse;
    }
  
.arriba {
    align-items: flex-start;
}
.abajo {
    align-items: flex-end;
}
.bloque img {
    width: 100%;
    max-width: 400px;
}
iframe, video {
    width: 100%;
    aspect-ratio: 16 / 9;
}
.bloque table {
    width: 100%;
    max-width: 350px;
    height: auto;
    padding: 0px;
    margin: 0px;
}
.bloque .texto {
    width: 100%;
    max-width: 350px;
    border-left: 2px solid #bbb4b4;
    padding: 20px 0px 20px 30px;
    text-align: justify;
}

.bloque .tInvertido {
    width: 100%;
    max-width: 350px;
    text-align: right;
    padding: 20px 30px 20px 0px;
    border-right: 2px solid #bbb4b4;
}
.bloque .textoN {
    width: 100%;
    text-align: justify;
}
.bloque .contacto {
    width: 50%;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.1);
    padding: 20px 20px;
}

.bloque .textoContacto {
    width: 50%;
    padding: 0px 20px;
    border: none;
}

.footer {
    background-color: #1e4396; /* azul de fondo */
    color: white;
    padding: 20px ;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 14px;
}
    .footer p {
        padding: 0px;
    }
    .footer a {
        color: white;
        text-decoration: none;
        margin: 0 5px;
    }

        .footer a:hover {
            text-decoration: underline;
        }

.footer-left {
    flex: 1 1 100%;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-end;
    flex: 1 1 100%;
}

    .footer-logos img {
        height: 40px;
        object-fit: contain;
    }
ul.dos-columnas {
    column-count: 2;
    column-gap: 50px;
    list-style-type: disc;
    padding-left: 20px;
}

.acordeon-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f0f0;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.acordeon-label:hover {
    background-color: #e0e0e0;
}

.flecha {
    transform: rotate(90deg);
    transition: transform 0.3s;
}
.imagenNoticia {
    float: right;
    width: 550px;
    max-width:100%;
    margin-left: 30px;
    margin-bottom: 24px;
}
.acordeon-label.collapsed .flecha {
    transform: rotate(0);
}

.acordeon-contenido {
    background: white;
    padding: 0px;
}
.acordeon-contenido p {
    padding: 3px 10px;
}

table {
    border-collapse: collapse;
    margin: 20px auto;
}

th {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}
td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}
td.centro
{
    text-align:center;
}
section.formulario
{
    width: 80%;
    margin: auto;
}
label {
    display: block;
    margin-bottom: 3px;
}
.control
{
    display: block;
    margin-bottom: 32px;

}
.inputformulario
{
    border-radius: 10px;
    display:block;
    width:100%;
    padding: 5px 5px;
    font-size: 18px;
    border: 1px solid #938d8d;
    
}

.margenB
{
    margin-bottom: 20px;
}
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px;
    flex-wrap: wrap;
}

.hero-text h1 {
    font-size: 48px;
    color: #004e6e;
    line-height: 1.2;
}

.hero-image img {
    max-width: 600px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 🎬 Animación al cargar */
.animated {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeSlideIn 1s ease-out forwards;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 970px) {
    .navI {
        width: 100%;
    }
    .menu > ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .social-icons {
        justify-content: center;
        margin: 10px auto;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .menu-container {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: start;
    }

    .menu {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .menu-container.active {
        margin-top: 24px;
        display: flex;
    }

    .submenu {
        position: relative;
        border: none;
        background-color: #fafafa;
    }

    .menu li:hover > .submenu {
        display: none; /* Disable hover on mobile */
    }

    .submenu.active {
        display: block !important;
    }

    .submenu .submenu {
        margin-left: 20px;
        left: 0;
        background-color: #f0f0f0;
    }
}

/* 📱 Responsive */
@media (max-width: 768px) {
body {
    padding-top: 85px;
}

.cuerpo {
    width: 100%;
    padding: 0px 20px;
    min-height: calc(100vh - 239px);
}

section.formulario {
    width: 100%;
    padding: 0px 20px;
}

.bloque .contacto, .bloque .textoContacto {
    width: 100%;
}

.bloque table {
    margin-bottom: 10px;
}

.hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
}

.hero-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

header {
    flex-direction: column;
    padding: 5px 10px;
}




cuerpo {
    width: 100%:
}

.bloque {
    flex-wrap: nowrap;
    display: block;
    padding: 0px;
}

    .bloque img,
    .bloque .texto,
    .bloque .tInvertido {
        width: 100%;
        padding: 10px 0px;
        border: none;
        text-align: center;
    }

    .bloque .textoN {
        width: 100%;
        padding: 20px 0px 0px 0px;
        border: none;
    }

.footer-logos {
    flex-wrap: wrap;
    margin-bottom: 0;
    justify-content: center;
    margin-top: 16px;
}

.footer {
    flex-wrap: wrap;
    align-items: center;
}

.galeria {
    grid-template-columns: repeat(2, 1fr);
}

.texto-central {
    padding: 20px 0px 0px 0px;
}

.textoCentrado {
    text-align: center;
}

.calidad {
    padding: 20px;
}

input:checked + .acordeon-label + .acordeon-contenido {
    max-height: 2000px; /* lo suficientemente grande para la mayoría de los contenidos */
    padding: 0px 10px;
}

.acordeon {
    border: 1px solid rgba(0,0,0,0.1);
}

.imagen-principal img {
    max-height: 150px;
}
}

@media (max-width: 480px) {
    .galeria {
        grid-template-columns: 1fr;
    }
}

.noticia {
    height: 400px;
    overflow: hidden;
}

.noticia::after {
    content: " ";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,255));
    width: 100%;
    height: 50px;
}

.noticia img {
    height: 150px;
    object-fit: cover;
    object-position: center;
}

a.seccionOferta {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    width: 100%;
    padding: 16px;
}

a.seccionOferta img {
    width: 150px;
}

a.seccionOferta span {
    font-size: 18px;
}

a.seccionOferta:hover {
    text-decoration: none;
    transform: scale(1.05) translateY(-7px);
    box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.1);
}
