body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F0F0E5;
    color: #0B0C08;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    background: rgba(44, 45, 27, 0.85);
    color: #F0F0E5;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(192, 195, 148, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo img {
    height: 80px;
}

/* NAV DESKTOP */
.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    position: relative;
    text-decoration: none;
    color: #F0F0E5;
    font-size: 18px;
    font-weight: 500;
    padding-bottom: 5px;
}

/* Línea animada */
.nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #C0C394;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: #F0F0E5;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

 .nav {
        position: absolute;
        top: 100%;
        right: 10px;
        width: 240px;
        padding: 20px;
        display: none;
        flex-direction: column;
        gap: 15px;

        /* ✨ GLASS EFFECT */
        background: rgba(44, 45, 27, 0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        border: 1px solid rgba(192, 195, 148, 0.2);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);

        /* ANIMACIÓN */
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }


    .nav.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

	.nav a {
		position: relative;
		text-decoration: none;
		color: #F0F0E5;
		font-size: 18px;
		padding-bottom: 5px;
	}
	
	/* línea elegante */
	.nav a::after {
		content: "";
		position: absolute;
		width: 0;
		height: 2px;
		bottom: 0;
		left: 0;
		background: #C0C394;
		transition: width 0.3s ease;
	}

	.nav a:hover {
		color: #C0C394;
		transform: translateX(3px);
		transition: 0.2s ease;
	}
}

.btn {
    background: #C0C394;
    color: #0B0C08;
    padding: 12px 24px;
    display: inline-block;
    margin-top: 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    background: #F0F0E5;
}

.section {
    padding: 80px 0;
}

.section-light {
    background: #F0F0E5;
}

.section-soft {
    background: #F7F7F0;
}

.section-accent {
    background: #C0C394;
}

.section.alt {
    background: #C0C394;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: #F0F0E5;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid rgba(192,195,148,0.35);

    box-shadow:
        0 2px 6px rgba(0,0,0,0.04),
        0 8px 20px rgba(0,0,0,0.06);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 4px 10px rgba(0,0,0,0.06),
        0 16px 35px rgba(0,0,0,0.08);
}

/* GALERÍA GRID */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: none;
    transition: transform 0.4s ease;
    display: block;
    margin: 0;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 12, 8, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.gallery-overlay span {
    font-size: 28px;
    filter: brightness(0) invert(1);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: scale(1);
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 12, 8, 0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    margin: 0;
}

#lightbox-caption {
    color: #C0C394;
    margin-top: 14px;
    font-size: 15px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #F0F0E5;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10001;
}

.lightbox-close:hover { color: #C0C394; }

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(240, 240, 229, 0.1);
    border: 1px solid rgba(240, 240, 229, 0.2);
    color: #F0F0E5;
    font-size: 42px;
    line-height: 1;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    z-index: 10001;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(192, 195, 148, 0.3);
}

@media (max-width: 768px) {
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
    .lightbox-prev,
    .lightbox-next { font-size: 30px; padding: 8px 12px; }
}

.map iframe {
    width: 100%;
    height: 300px;
    border: none;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer {
    background: #2C2D1B;
    color: #F0F0E5;
    padding: 40px 0;
    text-align: center;
}





.top-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #54582F;
    color: #F0F0E5;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 999;
}

.top-btn:hover {
    background: #C0C394;
    color: #0B0C08;
}

h1, h2 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    background: url('../assets/img/hero/hero.jpg') center/cover no-repeat;
    
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;

	padding: 0 20px 120px 20px;
    color: #F0F0E5;
}

/* Capa oscura elegante */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 8, 0.0);
    z-index: 1;
    pointer-events: none;
}

/* Contenido */

.hero-content {
    position: relative;
    max-width: 600px;
    margin-left: 5%;
    z-index: 2;
    text-align: left; 
}

.hero h1 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: #C0C394;
    margin-bottom: 30px;
}

/* BOTONES */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid #C0C394;
    color: #C0C394;
}

.btn-outline:hover {
    background: #C0C394;
    color: #0B0C08;
}

/* RESPONSIVE HERO — unificado */
@media (max-width: 768px) {

    .hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: auto;
        min-height: 100vh;
        padding: 140px 0 80px;
        text-align: center;
    }

    .hero-content {
        position: static;
        transform: none;
        margin: auto;
        margin-top: 20px;
        padding: 20px;
        text-align: center;
        backdrop-filter: blur(6px);
        border-radius: 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    .hero-buttons a {
        width: 90%;
        max-width: 280px;
        padding: 12px 16px;
        font-size: 14px;
    }

    
}

/* ANIMACIÓN HERO */
.hero-content {
    opacity: 0;
    margin-bottom: 40px;
    animation: fadeUpSafe 1s ease forwards;
    animation-delay: 0.4s;
}

@keyframes fadeUpSafe {
    from {
        opacity: 0;
        margin-bottom: 0;
    }
    to {
        opacity: 1;
        margin-bottom: 40px;
    }
}

@keyframes pulseSoft {
    0% {
        box-shadow: 0 0 0 0 rgba(192, 195, 148, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(192, 195, 148, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(192, 195, 148, 0);
    }
}



.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
}

/* OFFSET PARA HEADER FIJO */

section {
    scroll-margin-top: 120px;
}

/* Ajuste mobile */

@media (max-width: 768px) {
    section {
        scroll-margin-top: 90px;
    }
}

html {
    scroll-behavior: smooth;
}

/* SERVICIOS */

.servicios {
    padding: 100px 0;
}

/* INTRO */
.servicios-intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 80px auto;
}

.servicios-intro h2 {
    font-size: clamp(26px, 3vw, 38px);
    margin-bottom: 20px;
}

.servicios-intro p {
    font-size: 18px;
    line-height: 1.6;
    color: #2C2D1B;
}

/* BLOQUES */
.servicio-bloque {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

/* Alternar imagen */
.servicio-bloque.reverse .servicio-img {
    order: 2;
}

/* IMÁGENES */
.servicio-img img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}

.servicio-img img:hover {
    transform: scale(1.03);
}

/* TEXTO */
.servicio-texto h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.servicio-texto p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* BULLETS */
.servicio-texto ul {
    list-style: none;
    padding: 0;
}

.servicio-texto li {
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
}

.servicio-texto li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #C0C394;
    font-size: 20px;
}

/* CTA FINAL */
.servicios-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.servicios-cta p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* ANIMACIÓN SCROLL */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .servicio-bloque {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .servicio-bloque.reverse .servicio-img {
        order: 0;
    }

    .servicios {
        padding: 80px 0;
    }

}

/* transforms eliminados: generaban desplazamiento visual permanente no intencional */

/* QUIENES SOMOS */

.quienes {
    padding: 100px 0;
}

.quienes-intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 80px auto;
}

.quienes-intro h2 {
    font-size: clamp(26px,3vw,38px);
    margin-bottom: 20px;
}

.quienes-intro p {
    font-size: 18px;
    line-height: 1.6;
}

/* BLOQUES */

.quienes-bloque {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.quienes-bloque.reverse .quienes-img {
    order: 2;
}

.quienes-img img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.quienes-texto h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.quienes-texto p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.quienes-texto ul {
    list-style: none;
    padding: 0;
}

.quienes-texto li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.quienes-texto li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #C0C394;
    font-size: 20px;
}

/* NOSOTROS */

.quienes-mision {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.quienes-mision h3 {
    margin-bottom: 20px;
}

.quienes-mision p {
    font-size: 18px;
    line-height: 1.6;
}

/* MISION VISION VALORES */

.mvv{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
margin-top:80px;
}

.mvv-card{
background:#ffffff;
padding:35px;
border-radius:14px;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
transition:transform .3s ease;
}

.mvv-card:hover{
transform:translateY(-5px);
}

.mvv-card h3{
margin-bottom:20px;
font-size:24px;
}

.mvv-card p{
margin-bottom:15px;
line-height:1.6;
}

.mvv-card ul{
padding-left:0;
list-style:none;
}

.mvv-card li{
margin-bottom:12px;
line-height:1.5;
}

.mvv-card strong{
color:#5a6d55;
}

/* RESPONSIVE */

@media (max-width:900px){

.mvv{
grid-template-columns:1fr;
}
}



/* RESPONSIVE */

@media (max-width:900px){

    .quienes-bloque{
        grid-template-columns:1fr;
        gap:30px;
    }

    .quienes-bloque.reverse .quienes-img{
        order:0;
    }
}

.section {
    border-top: 1px solid rgba(0,0,0,0.04);
    padding: 90px 0;
    position: relative;
}

.section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80px;
    height: 1px;
    background: rgba(192,195,148,0.4);
    transform: translateX(-50%);
}

img {
	border-radius: 14px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* CONTACTO */

.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacto-info h2 {
    margin-bottom: 20px;
}

.contacto-info p {
    margin-bottom: 15px;
}

.contacto-datos p {
    margin-bottom: 15px;
}

.contacto-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto-form input,
.contacto-form textarea {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.15);
    font-size: 14px;
}

.contacto-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: #54582F;
}

@media (max-width: 768px) {

.contacto-container {
    grid-template-columns: 1fr;
    gap: 40px;
}

}

/* FOOTER */

.footer{
    background: linear-gradient(180deg,#2C2D1B,#1E1F13);
    color:#F0F0E5;
    padding:40px 0 20px;
}

/* estructura principal */

.footer-main{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
}

/* logo */

.footer-brand img{
    height:60px;
}

/* info derecha */

.footer-info{
    display:flex;
    align-items:center;
    gap:30px;
}

/* redes */

.footer-social{
    display:flex;
    gap:10px;
}

.social-btn{
    text-decoration:none;
    color:#F0F0E5;
    border:1px solid rgba(255,255,255,0.2);
    padding:8px 14px;
    border-radius:6px;
    transition:0.25s;
}

.social-btn:hover{
    background:#C0C394;
    color:#0B0C08;
}

/* parte inferior */

.footer-bottom{
    border-top:1px solid rgba(255,255,255,0.15);
    margin-top:30px;
    padding-top:20px;
    text-align:center;
    font-size:14px;
}

.footer-bottom img{
    height:18px;
    vertical-align:middle;
    margin-left:6px;
}

.footer-social img{
height:22px;
opacity:.85;
transition:.25s;
}

.footer-social img:hover{
opacity:1;
transform:scale(1.1);
}

/* MOBILE */

@media (max-width:768px){

.footer-main{
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.footer-info{
    flex-direction:column;
    gap:15px;
}

.footer-info p{
margin:0;
white-space:nowrap;
}

}

/* MENSAJE DE ÉXITO DEL FORMULARIO */
#form-success {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(11, 12, 8, 0.2);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    margin-top: 10px;
}

/* WHATSAPP FLOAT — regla final para garantizar visibilidad en todos los dispositivos */


@media (max-width: 768px) {
    
}

/* ========================================
   BOTÓN FLOTANTE WHATSAPP — REGLA ÚNICA
   ======================================== */
.whatsapp-float {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 55px !important;
    height: 55px !important;
    background-color: #25D366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25) !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    /* resetear cualquier herencia no deseada */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.whatsapp-float svg {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}