/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

body {
	background-color: rgb(25, 25, 25);	
/*	background-color: #f4f6f0; */
	font-family: 'Inter', sans-serif;
	min-height: 100vh;
}

/* ==========================================================================
   2. NAV / HEADER DESKTOP
   ========================================================================== */
   
.header {
	position: fixed;
	width: 100%;
	z-index: 100;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	background-color: rgba(50, 50, 50, 0.7);
	
	backdrop-filter: blur(5px);          
	-webkit-backdrop-filter: blur(5px);  
	
	animation: cambiarAlfa linear both;
	animation-timeline: scroll(root);
	animation-range: 0px 400px; 
}

@keyframes cambiarAlfa {
	from {
		background-color: rgba(0, 0, 0, 0);
		box-shadow: 0px 0px 0px black;
		border-bottom-color: rgba(255, 255, 255, 0);
	}
	to {
		background-color: rgba(50, 50, 50, 0.7);
		box-shadow: 0px 4px 10px rgba(55, 55, 55, 0.9);
		border-bottom-color: rgba(255, 255, 255, 1);
	}
}

.header__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 70px;
	max-width: 1100px;
	padding: 0 15px;
	margin: 0 auto;
}

.logo__img {
	height: 50px;
	display: block;
}

.nav__list {
	display: flex;
	column-gap: 5px;
}

.nav__link {
	color: #d3d3d3;
	background-color: #445c28;
	border: 1px solid #d3d3d3;
	padding: 10px 0; 
	width: 120px; /* Reducido para optimizar los 7 botones */  
	text-align: center; 
	font-size: 14px; /* Tamaño de letra más fino y equilibrado */	
	font-weight: 500;
	transition: all 0.2s;
	display: inline-block; 
}

.nav__link:hover,
.nav__link:focus {
	color: #ffffff;
	background-color: #678b3d; 
	border-color: #ffffff;
}

/* Variante especial destacada para Cerrar Sesión 
.nav__link--logout {
    background-color: #5c2828; 
    border-color: #e2b3b3;
    color: #e2b3b3;
}

.nav__link--logout:hover,
.nav__link--logout:focus {
    background-color: #8b3d3d;
    border-color: #ffffff;
}
*/

/* ==========================================================================
   3. SECCION HOME
   ========================================================================== */
   
#home, #loteo, #servicios {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 80px 40px;
    box-sizing: border-box;
    width: 100%;
}

#home {
    scroll-margin-top: 70px;
	min-height: 105vh; 
	background-color: rgb(25, 25, 25);	
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0)), url("../media/home_1920x600.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
	background-color: rgb(25, 25, 25);
    background-attachment: fixed;	
}
	
.home__textos {
	line-height: 1.5;
}

/* ==========================================================================
   4. SECCIÓN LOTEO
   ========================================================================== */
   
#loteo {
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 0px;
	min-height: 75vh;	
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: rgb(230, 230, 210);
    background-attachment: fixed; 
    padding: 80px 0px; /* Reducido levemente para dar más espacio vertical al plano */
    width: 100%;
}

/* El contenedor ahora prioriza fuertemente el plano */
.loteo__contenedor {
    display: flex;
    flex-direction: row; 
    align-items: center; 
    gap: 20px; /* Gap mínimo: permite que el texto y la imagen estén casi al límite */
    width: 95%; /* Ampliado del 90% al 95% para estirar el espacio disponible */
    max-width: 1300px; /* Permitimos un ancho mayor para que el plano luzca gigante */
    margin: 0 auto;
}

.loteo__textos {
    flex: 3; /* Equivalente aproximado al 30% del espacio */
    text-align: left;
    z-index: 2; /* Asegura que el texto siempre sea legible si llega a tocar la imagen */
}

.loteo__textos .b-tit {
    font-size: 3.5em; /* Reducido un toque para que no compita en tamaño con el plano gigante */     
    line-height: 1.1;
    margin-bottom: 20px;
}

.loteo__textos .b-p1 {
	text-align: justify;
    font-size: 1.15em;
    line-height: 1.6;
    padding: 0;          
}

.loteo__imagen {
    flex: 7; /* IMPONENTE: Toma el 70% del ancho del contenedor */
    display: flex;
    justify-content: flex-end; /* Recuesta el plano bien hacia la derecha */
}

.loteo__imagen img {
    width: 100%;
    max-width: 950px; /* Límite amplio para conservar nitidez */   
    height: auto;
    object-fit: contain;
	display: block;
}
/* ==========================================================================
   5. SECCIÓN SERVICIOS
   ========================================================================== */
   
#servicios {
    scroll-margin-top: 0px;
	min-height: 55vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)), url("../media/servicios_01_500x500.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: rgb(50,50,50);
    background-attachment: fixed;
}

.servicios__contenedor {
    display: flex;
    flex-direction: row;
	gap: 50px; /* Mayor espacio de separación para respirar mejor */
	align-items: center; 
	max-width: 1300px; /* Unificado con el max-width de Loteo y Galería */
	margin: 0 auto;
	padding: 40px 20px;
    width: 95%; /* Ampliado del 90% al 95% para estirar el espacio disponible */
}

.servicios__imagen {
    flex: 1; /* IMPONENTE: Toma el 70% del ancho del contenedor */
    display: flex;
    justify-content: flex-end; /* Recuesta el plano bien hacia la derecha */
}

.servicios__imagen img {
    width: 100%;
    max-width: 950px; /* Límite amplio para conservar nitidez */   
    height: auto;
    object-fit: contain;
	display: block;
	border-radius: 20px;
	border: 3px solid rgb(255, 255, 255);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.servicios__textos {
    flex: 3; /* Equivalente aproximado al 30% del espacio */
    text-align: left;
    z-index: 2; /* Asegura que el texto siempre sea legible si llega a tocar la imagen */
}

.servicios__textos .w-tit {
    font-size: 3.5em;      
    line-height: 1.1;
    margin-bottom: 20px;
/*  text-shadow: 0px 0px 0px rgba(0, 0, 0, 0); /* Sombra suavizada para mayor finura */	
}

.servicios__textos .w-p1 {
	text-align: justify;
    font-size: 1.15em;
    line-height: 1.6;
    padding: 0;         
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Sombra suavizada para mayor finura */
}

/* ==========================================================================
   6. SECCIÓN GALERÍA DESKTOP (GRID 6 COLUMNAS)
   ========================================================================== */
   
#galeria {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
	padding: 50px 0px; 
	background-color: rgba(230, 230, 210);
	scroll-margin-top: 50px;
	min-height: 45vh;
}

#galeria .b-tit {
    font-size: 3.4em;	
	margin-bottom: 40px; 
}

.galeria__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr); 
	gap: 30px; 
	width: 100%;
	max-width: 1100px; 
	margin: 0 auto;
}

.galeria__item {
	position: relative;
	overflow: hidden;
	height: 220px; 
	border-radius: 8px; 
	border: 2px solid rgb(255, 255, 255);
	background-color: #e0e0e0;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.galeria__item img {
	width: 100%;
	height: 100%;
	object-fit: cover; 
	display: block;
	filter: brightness(0.9); 
	transition: transform 0.4s ease, filter 0.4s ease; 
}

.galeria__item:hover img {
	transform: scale(1.06); 
	filter: brightness(1.05); 
}

/* ==========================================================================
   7. SECCIÓN CONTACTO DESKTOP (SIMÉTRICA - DOS COLUMNAS)
   ========================================================================== */
#contacto {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
	background-color: rgb(230, 230, 210);
	padding: 80px 0px;
	min-height: 55vh;
}

.contacto__contenedor {
	display: flex;
	flex-direction: row; 
	align-items: flex-start;
	gap: 40px;
	width: 90%;
	max-width: 1100px;
	margin: 0 auto;
}

.mapa-responsive {
	flex: 1;
	width: 50%;
	height: 480px; 
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	border: 2px solid rgb(255, 255, 255);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);	
}

.mapa-responsive iframe {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.form-responsive {
	flex: 1;
	width: 50%;
	height: 480px;          
	padding: 5px 20px;      
	text-align: left; 
	overflow: hidden;       
	border: none;           
	background: none;       
}

.form-responsive .b-tit {
    font-size: 3.5em;
    line-height: 1.1;
    margin-bottom: 8px;
    text-align: left;
}

.form-responsive .b-p1 {
    font-size: 1.1em;       
    line-height: 1.3;
    padding: 0; 
    margin-bottom: 15px;
    text-align: left;
}

.form-responsive label p.b-p1 {
    font-size: 0.95rem;     
    font-weight: 700;
    margin-bottom: 2px;
	text-align: left;
	padding: 0;
}

.form-responsive input[type="text"],
.form-responsive textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;     
    margin-top: 2px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333333;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-responsive input[type="text"] {
    margin-bottom: 12px;    
}

.form-responsive textarea {
    margin-bottom: 15px;
    height: 90px;           
    resize: none;
}

.form-responsive input[type="text"]:focus,
.form-responsive textarea:focus {
    border-color: rgb(50, 130, 30);
    outline: none;
    box-shadow: 0 0 0 3px rgba(50, 130, 30, 0.15);
}

.form-responsive .btn-retro {
    width: auto;            
    padding: 10px 35px;
    font-size: 15px;
}

/* ==========================================================================
   8. TIPOGRAFÍAS GLOBALES & BOTONES BASE
   ========================================================================== */
   
.w-tit {
	font-size: 6em;
	color: rgb(255, 255, 255);
	text-shadow: 4px 4px 10px black;
}

.w-p1 {
	font-size: 1.4em;
	color: rgb(255, 255, 255);
	text-shadow: 4px 4px 10px black;
}

.b-tit {
	font-size: 6em;
	color: rgb(50, 50, 50);
}

.b-p1 {
	font-size: 1.4em;
	color: rgb(50, 50, 50);
	padding: 0px 30px;	
}

.b-p2 {
	font-size: 1.0em;
	color: rgb(150, 150, 150);
	padding: 0px 30px;	
}

.btn-retro {
    background-color: rgb(210,210,190);
    color: #000000;
    padding: 14px 40px;            
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;     
    letter-spacing: 1px;           
    border: 2px solid #000000; 
    border-radius: 4px;
    cursor: pointer;
    width: 100%;                   
    transition: all 0.2s ease;
}

#loteo .btn-retro {
    width: 50%;
}	


.btn-retro:hover {
    background-color: rgba(50, 130, 30, 0.8);
    color: #FFFFFF;
    border: 2px solid #FFFFFF; 
}

/* ==========================================================================
   9. FOOTER DESKTOP
   ========================================================================== */
.sitio-footer {
	bottom: 0px;
	width: 100%;
	z-index: 100;	
	background-color: rgba(25, 25, 25, 1);
	color: rgba(255, 255, 255, 1);
	padding: 20px 0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contenedor-footer {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 30px;
}

.columna-footer {
	flex: 1;
	min-width: 250px; 
}

.columna-footer p {
	color: #cccccc;
	line-height: 1.5;
	font-size: 1rem;
	text-align: center;
}

.barra-inferior {
	text-align: center;
	margin-top: 10px;
	padding-top: 5px;
}

.barra-inferior p {
	color: rgb(150, 150, 150);
	font-size: 0.85rem;
	margin: 0;
}

/* ==========================================================================
   10. VENTANA FLOTANTE DE IMÁGENES (LIGHTBOX MODAL)
   ========================================================================== */
   
.modal {
    display: none;             
    position: fixed;
    z-index: 1000;             
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal__contenido {
    max-width: 90%;
    max-height: 85vh;          
    object-fit: contain;
    border-radius: 8px;        
    border: 3px solid rgba(255, 255, 255, 0.8);
    animation: zoomEfecto 0.3s ease;
}

@keyframes zoomEfecto {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal__cerrar {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal__cerrar:hover {
    color: rgb(0, 183, 255);   
}

/* ==========================================================================
   11. MEDIA QUERIES (AJUSTES ADAPTATIVOS TOTALES PARA CELULARES)
   ========================================================================== */
   
/* Detecta CUALQUIER dispositivo táctil (Vertical u Horizontal) */
@media (pointer: coarse) {

	#home, #loteo {
		background-attachment: scroll; /* iOS ya no se romperá al girarlo */
	}
}

/* ==========================================================================
   6. SECCIÓN GALERÍA DESKTOP (Ajustes de Filtros Estacionales)
   ========================================================================== */

.galeria__filtros {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 35px;
	flex-wrap: wrap; /* Permite que se acomoden solos en pantallas chicas */
}

.btn-filtro {
	background-color: transparent;
	color: #505050;
	border: 2px solid #505050;
	padding: 8px 24px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	border-radius: 4px;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.25s ease;
}

.btn-filtro:hover {
	background-color: rgba(80, 80, 80, 0.1);
}

.btn-filtro.active {
	background-color: #445c28; /* Verde corporativo unificado con la barra de navegación */
	color: #ffffff;
	border-color: #445c28;
}

/* Ajustes adicionales de grilla responsive para celulares */
@media (max-width: 768px) {
	.galeria__filtros {
		gap: 8px;
		padding: 0 15px;
	}
	
	.btn-filtro {
		font-size: 12px;
		padding: 6px 16px;
		width: 100%; /* Los botones se apilan ordenadamente en smartphones */
		max-width: 280px;
	}
}

@media (max-width: 768px) {

	#home {
		min-height: 105vh;        
		padding: 80px 20px;       
		background-attachment: scroll;
	}
	
	.home__textos {
		font-size: 0.75em;
        line-height: 1;
	}
	
	#loteo {
		padding: 20px 20px;
		scroll-margin-top: 130px;		
	}	
	
	.loteo__contenedor {
		flex-direction: column;   /* Se apila verticalmente en móviles */
		gap: 30px;
		width: 100%;
	}

	.loteo__textos {
		text-align: center;       /* Centra títulos y párrafos en celulares */
	}

	.loteo__textos .b-tit {
		font-size: 3.2em;
		margin-bottom: 15px;
	}

	.loteo__textos .b-p1 {
		font-size: 1.1em;
		padding: 0 10px;
	}

	.loteo__imagen {
		width: 100%;
	}

	.loteo__imagen img {
		width: 100%;
		max-width: 450px;
	}
	
	#servicios {
		padding: 20px 20px;
		scroll-margin-top: 90px;
		background-attachment: scroll;
	}
	
	.servicios__contenedor {
		flex-direction: column;   /* Se apila verticalmente en móviles */
		gap: 30px;
		width: 100%;
	}

	.servicios__textos {
		text-align: center;       /* Centra títulos y párrafos en celulares */
	}

	.servicios__textos .w-tit {
		font-size: 3.2em;
		margin-bottom: 15px;
	}

	.servicios__textos .w-p1 {
		font-size: 1.1em;
		padding: 0 10px;
	}

	.servicios__imagen {
		width: 100%;
	}

	.servicios__imagen img {
		width: 100%;		
		max-width: 450px;
	}
	
	#galeria {
		padding: 40px 0px;
		scroll-margin-top: 105px;
	}
	
	.galeria__grid {
		grid-template-columns: repeat(3, 1fr); 
		gap: 8px;                             
		width: 92%;                            
		max-width: none;                       
	}

	.galeria__item {
		height: 120px;                         
		border: 1.5px solid rgb(255, 255, 255); 
	}

	#contacto {
		padding: 30px 20px 60px 20px;
		scroll-margin-top: 85px; 
	}

	.contacto__contenedor {
		flex-direction: column-reverse; 
		align-items: center; 
		gap: 30px;
		width: 100%;
	}

    .form-responsive {
        width: 90%;
        max-width: 500px;
        height: auto; 
        padding: 30px 20px;        
    }

    .form-responsive .b-tit {
        text-align: center;
        padding: 10px 10px;           
        font-size: 3.2em;
        line-height: 0.8;

    }

    .form-responsive .b-p1 {
        text-align: center;
        font-size: 0.9em;
        line-height: 1.1;
        margin-bottom: 15px;
    }

	.form-responsive label p.b-p1 {
		text-align: center;
	}

    .form-responsive .btn-retro {
        max-width: 280px;          
        margin: 10px auto 0 auto;
        display: inline-block;
    }

	.mapa-responsive {
		width: 90%; 
		max-width: 500px;
		height: 0;
		padding-bottom: 55%; 
	}

	.w-tit {
		font-size: 3.5em;
		text-shadow: 0px 2px 5px black;			
	}
	
	.b-tit {
		font-size: 3.2em;
	}	
	
	.w-p1, .b-p1 {
		padding: 10px 30px;			
		font-size: 1em;
	}
	
	.b-p2 {
		padding: 10px 30px;			
		font-size: 0.9em;
	}

	.header {
		position: fixed;
		width: 100%;
		top: 0;
	}
	
	.header__content {
		flex-direction: column;
		align-items: center;
		padding: 10px;
		row-gap: 5px;
	}

    .menu-checkbox {
        display: none;
    }

    .menu-button {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 100;
    }

    .menu-button span {
        width: 100%;
        height: 3px;
        background-color: #d3d3d3;
        transition: all 0.3s ease;
    }

    .nav__list {
		z-index: 1;		
        position: absolute;
        top: 108px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(50,50,50,0.75);
        row-gap: 0px;
        padding: 30px 30px;
        align-items: center;
        box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav__link {
        width: 90% !important;
		padding: 15px 0;
	    font-size: 1rem;		
    }

    .menu-checkbox:checked ~ .nav__list {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu-checkbox:checked ~ .menu-button span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-checkbox:checked ~ .menu-button span:nth-child(2) {
        opacity: 0;
    }
    .menu-checkbox:checked ~ .menu-button span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

	.btn {
		font-size: 18px;	
	}

	.logo__img {
		height: 60px;
		display: block;
	}
}

@media (min-width: 769px) {
    .menu-checkbox, .menu-button {
        display: none;
    }
}

/* ==========================================
   ALERTAS FLOTANTES (TOAST NOTIFICATIONS)
   ========================================== */
.toast-alerta {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease;
    text-align: center;
    max-width: 90%;
    width: 450px;
    animation: slideUpToast 0.5s ease forwards;
}

.toast-success {
    background-color: #4a6b52; /* Verde sofisticado acorde al club */
    border-left: 5px solid #2d4233;
}

.toast-error {
    background-color: #bc4749; /* Rojo suave para errores */
    border-left: 5px solid #7a2e30;
}

@keyframes slideUpToast {
    from {
        bottom: -50px;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

/* ==========================================
   PANTALLA DE CARGA / SPINNER GLOBAL
   ========================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85); /* Fondo blanco traslúcido para tapar el sitio */
    backdrop-filter: blur(4px); /* Efecto de desenfoque moderno */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Asegura estar por encima de todo */
}

.spinner-container {
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.custom-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #eef2f0;
    border-top: 5px solid #4a6b52; /* El color verde de El Pegual */
    border-radius: 50%;
    margin: 0 auto 20px auto;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Animación de rotación del relojito */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}