@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&display=swap');
/*// <weight>: Use a value from 100 to 900
// <uniquifier>: Use a unique and descriptive class name

.montserrat-<uniquifier> {
  font-family: "Montserrat", sans-serif;
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
*/

/* Variables y Reset */
:root {
	--colorbase: #2B5893;
	--primary: rgb(43,88,147); /* Azul empresa */
	--primario: #007bff;
	--secundario: #f4f7f6;
	--terciario: rgb(72,161,218); /* Azul empresa */
	--cuartoc: rgb(105,179,192);
	--quintoc: rgb(79,135,193);
	--sextoc: rgb(168,224,233);
	--texto:#000;
	--texto-claro:#555;
}

* { margin:0;
	padding:0;
	box-sizing:border-box;
	font-family:'Montserrat', sans-serif;
}
body {
	font-size:1.15em;
	color:var(--texto);
	background-color:#fff;
}
h1,h2,h3,h4{
	font-family:'Oswald', sans-serif;
	font-weight:400;
}
p{
	margin-bottom:1em;
}
p:last-child{
	margin-bottom:0;
}
/* ================== */
a.wbtn {
	position:fixed;
	right:5px;
	top:30%;
	padding:5px;
	width:65px;
	background-color:#25D366;
	text-align:center;
	-webkit-border-radius:50%;
	-moz-border-radius:50%;
	border-radius:50%;
	z-index:3000;
}
a.wbtn img{
	width:95%;
	border:0;
	vertical-align:top;
}
/* ================== */
/* Menú Responsivo */
.header {
	background-color:#fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
	position:sticky;
	top:0;
	z-index:1000;
}
.superior{
    width:100%;
    display:flex;
    padding:0 5% 1em 5%;
}
.superior a{
	margin:0 auto;
	text-align:right;
    text-decoration:none;
    color:var(--terciario);
}
/* ============ */
.navbar {
	display:flex;
	justify-content:space-between;
	align-items:center;
	padding:1rem 5%;
	margin:0 auto;
}
.nav-logo {
	font-size: 1.5rem;
	color: var(--texto);
	text-decoration: none;
}
.nav-logo strong {
	color: var(--primario);
}
.nav-logo img{
	width:140px;
	border:0;
	vertical-align:top;
}
.nav-menu {
	display:flex;
	list-style:none;
	gap:2rem;
}
.nav-link {
	color: var(--texto-claro);
	text-decoration: none;
	transition: all .3s ease-in-out;
	padding-bottom: 0.3rem;
}
.nav-link:hover {
	color: var(--colorbase);
}
.nav-link.active {
	color: var(--colorbase);
	font-weight:600;
	border-bottom: 2px solid var(--colorbase);
}
.hamburger {
	display:none;
	cursor:pointer;
}
.bar { display:block;
	width: 25px;
	height: 3px; margin: 5px auto;
	background-color: var(--texto);
	transition: all .3s ease-in-out;
}

/* Banner Infinito */
.banner-container { width: 100%; overflow: hidden; position: relative; height: 450px; background:#C8E2F3; }
.banner-wrapper { display: flex; width: 400%; height: 100%; transition: transform 0.4s ease-in-out; }
.slide { width: 25%; display: flex; align-items: center; justify-content: center; padding: 0 5%; }
.slide-content { display: flex; align-items: center; width: 100%; max-width: 1200px; gap: 20px; }
.slide-text, .slide-img { flex: 1; }
.slide-img img { width: 100%; height: 350px; object-fit: cover; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; background: #bbb; border-radius: 50%; cursor: pointer; transition: all .3s ease-in-out; }
.dot.active { background: var(--primario); transform: scale(1.2); }

/* Bienvenida */
.welcome-section {
	text-align:center;
	padding:3rem 10%;
	color:var(--texto);
	line-height:1.6;
	max-width:1400px;
	margin:0 auto;
}

/* Cuadrícula 4x2 */
.grid-4x2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	max-width: 1200px;
	margin: 0 auto;
	background:#fff;
}
.grid-item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3rem;
	height: 350px;
}
.text-item {
	background-color: var(--secundario);
	text-align:center;
}
.text-item h2 {
	margin-bottom: 15px;
	color:#fff;
	text-shadow: 0 1px 3px #000;
}
.img-item { padding: 0; }
.img-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Botón Ver Más */
.btn-container {
	text-align: center;
	padding: 3rem 0;
}
.btn-primary, .btn-submit {
	background: var(--terciario);
	color:#fff;
	padding: 12px 30px;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold; border: none;
	cursor: pointer;
	transition: all .3s ease-in-out;
}
.btn-primary:hover, .btn-submit:hover {
	background: var(--colorbase);
}

/* ===== CONTACTO ===== */
.contact-section {
	display:grid;
	grid-template-columns:1fr 1fr;
	max-width:1300px;
	margin:0 auto;
	padding:4rem 5%;
	gap:3rem;
	background:var(--sextoc);
	border-radius: 10px;
	margin-bottom: 3rem;
}
.contact-logo{
	max-width:240px;
	margin:0 auto;
	padding-bottom:20px;
}
.contact-logo img{
	border:0;
    vertical-align:top;
}
.contact-info p {
	margin-bottom:10px;
}
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}
.contact-form input, .contact-form textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 5px;
	outline: none;
}
.contact-form textarea {
	resize: vertical;
	height: 120px;
}
/* Modal */
.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.6);
}
.modal-content {
	background-color:#fff;
	border:5px solid rgb(105,179,192);
	margin:15% auto;
	padding:30px;
	width:90%;
	max-width:500px;
	border-radius:10px;
	position:relative;
	text-align:center;
}
.close-btn {
	position:absolute;
	right:20px;
	top:15px;
	font-size:32px;
	cursor: pointer;
	color: #aaa;
}
.close-btn:hover {
	color: #000;
}

/* --- ESTILOS PÁGINA SERVICIOS --- */
.services-intro {
	text-align: center;
	padding: 4rem 10%;
	max-width: 1400px;
	margin: 0 auto;
}
.services-intro h1 {
	color: var(--colorbase);
	margin-bottom: 20px;
	font-size: 2.5rem;
}
/* Cuadrícula 3x2 */
.services-grid-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto 5rem auto;
	padding: 0 5%;
}
.service-card {
	background:#fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	transition: transform 0.3s ease;
}
.service-card:hover {
	transform: translateY(-10px);
}
.service-img-box {
	height: 200px;
	overflow: hidden;
}
.service-img-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.service-info {
	padding: 20px;
	text-align: center;
}
.service-info h3 {
	margin-bottom: 10px;
	color: var(--texto);
	border-bottom: 2px solid var(--primario);
	display: inline-block;
	padding-bottom: 5px;
}
.service-info p {
	font-size: 0.95rem;
	color: var(--texto-claro);
	line-height: 1.5;
}
/* Galería de Imágenes */
.gallery-section {
	background-color: var(--secundario);
	padding: 4rem 5%;
	text-align: center;
}
.gallery-section h2 {
	margin-bottom: 3rem;
	font-size: 2rem;
}
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	max-width: 1200px;
	margin: 0 auto;
}
.gallery-item {
	height: 250px;
	overflow: hidden;
	border-radius: 8px;
}
.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	cursor: pointer;
}
.gallery-item img:hover {
	transform: scale(1.1);
}
/* --- PÁGINA DE CONTACTO --- */
.contact-page {
	background-color:#fcfcfc;
	padding-bottom:5rem;
}
.contact-hero {
	background:rgb(43,88,147);
	color:#fff;
	text-align:center;
	padding:5rem 5%;
	margin-bottom:-4rem; /* Superposición con el contenedor de abajo */
}
.contact-hero h1 {
	font-size:2.8rem;
	margin-bottom:15px;
}
.contact-container {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 30px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 5%;
	position: relative; /* Para elevarlo sobre el hero */
	z-index: 5;
}
/* Columna de Detalles */
.contact-details {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
.detail-card {
	background:#fff;
	padding: 25px;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.05);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: all .3s ease-in-out;
}
.detail-card:hover {
	transform:translateY(-5px);
}
.detail-card .icon {
	font-size: 2rem;
	margin-bottom: 10px; }
.detail-card h3 {
	font-size: 1.15rem;
	color: var(--colorbase);
	margin-bottom: 8px;
}
.detail-card p {
	font-size: 1rem;
	color: var(--texto-claro);
	line-height: 1.4; }

/* Envoltura del Formulario */
.contact-form-wrapper {
	background:#fff;
	padding: 40px;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.contact-form-wrapper h2 {
	margin-bottom: 25px;
	color: var(--texto);
	font-size: 1.8rem;
}
.main-contact-form .form-group {
	margin-bottom: 20px;
}
.main-contact-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--texto);
}
.main-contact-form input, .main-contact-form textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 1rem;
	transition: border-color 0.3s;
}
.main-contact-form input:focus, .main-contact-form textarea:focus {
	border-color: var(--primario);
	outline: none;
}
.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.btn-submit-large {
	background: var(--terciario);
	color:#fff;
	border: none;
	padding: 15px 30px;
	width: 100%;
	font-size: 1.1rem;
	font-weight: bold;
	border-radius: 5px;
	cursor: pointer;
	transition: all .3s ease-in-out;
	margin-top: 10px;
}
.btn-submit-large:hover {
	background:var(--colorbase);
	box-shadow:0 2px 9px rgba(0,86,179,0.5);
}
/* ===== FOOTER ===== */
.footer {
	background-color: #222;
	color:#fff;
	text-align: center;
	padding:3rem 5%;
}
.footer a {
	color:#fff;
	text-decoration: none;
	margin: 0 10px; }
.footer a:hover {
	color: var(--terciario);
}
.social-icons {
	margin-bottom: 15px;
	font-weight: bold; }
.footer-links {
	margin-bottom: 15px;
}
.copyright {
	font-size: 0.9rem;
	color: #888;
}
/* === AVISO PRVACIDAD === */
.aviso-intro {
	text-align:justify;
	padding: 5rem 10%;
	max-width: 1400px;
	margin:0 auto;
}
/* --- BOTÓN VOLVER ARRIBA --- */
.btn-scroll-top {
    position:fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primario); /* Usa el color azul de tu marca */
    color:#fff;
    border:none;
    border-radius:50%;
    width:50px;
    height:50px;
    font-size:24px;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(0,0,0,0.3);
    z-index:1000;
    /* Animación de entrada/salida */
    opacity:0;
    visibility:hidden;
    transform:translateY(20px);
    transition:all 0.3s ease-in-out;
}
/* Esta clase se agrega con JS cuando bajamos el scroll */
.btn-scroll-top.show {
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}
.btn-scroll-top:hover {
    background-color:#0056b3;
    transform:translateY(-5px);/* Pequeño salto al pasar el mouse */
}
/* --- BOTÓN VOLVER ARRIBA --- */


/* Adaptabilidad Contacto */
@media (max-width: 850px) {
	.contact-container { grid-template-columns: 1fr; }
	.contact-hero { padding: 4rem 5% 6rem 5%; }
}

@media (max-width: 500px) {
	.form-row { grid-template-columns: 1fr; }
	.contact-form-wrapper { padding: 25px; }
	.aviso-intro { text-align:left; }
}

/* --- Responsividad Servicios --- */
@media (max-width: 992px) {
	.services-grid-container { grid-template-columns: repeat(2, 1fr); }
	.gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
	.services-grid-container { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Responsividad --- */
@media (max-width: 768px) {
	/* Menú */
	.hamburger { display: block; }
	.nav-menu { position: fixed; left: -100%; top: 60px; flex-direction: column; background:#fff; width: 100%; text-align: center; transition: all .3s ease-in-out;; padding: 1rem 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
	.nav-menu.active { left: 0; }
	.nav-item { margin: 1.2rem 0; }
	.hamburger.active .bar:nth-child(2) { opacity: 0; }
	.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	
	/* Layout */
	.slide-content { flex-direction: column; text-align: center; }
	.banner-container { height: auto; padding: 40px 0; }
	.grid-4x2, .contact-section { grid-template-columns: 1fr; }
	/* Ajustar el orden de la cuadrícula en móviles para que quede Texto, Imagen, Texto, Imagen... */
	.grid-item:nth-child(1) { order: 1; }
	.grid-item:nth-child(2) { order: 2; }
	.grid-item:nth-child(3) { order: 3; }
	.grid-item:nth-child(4) { order: 4; }
	.grid-item:nth-child(5) { order: 5; }
	.grid-item:nth-child(6) { order: 6; }
	.grid-item:nth-child(7) { order: 7; }
	.grid-item:nth-child(8) { order: 8; }
	.superior{ flex-direction: column; }
	.superior a{ margin-bottom:.5em; font-size:.95rem; }
	.superior a:last-child{ margin-bottom:.0; }
	a.wbtn {display:none;}
}