/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --color-primary: #4CAF50; /* verde principal */
    --color-primary-dark: #2e7d32;
    --color-accent: #8BC34A;
    --color-muted: #6b7280;
    --bg-odd: #f7faf6; /* very light green */
    --bg-even: #ffffff;
    --card-bg: #ffffff;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Barra de navegación */
.navbar {
    position: fixed;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    top: 0;
    transition: top 0.4s ease-in-out;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.4px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Nav small pill on hover */
.nav-links a {
    padding: 0.35rem 0.45rem;
    border-radius: 6px;
}
.nav-links a:hover{
    background: rgba(76,175,80,0.06);
}

/* Sección Hero */
.hero {
    height: 100vh;
    background-image: 
      linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
      url('../Main/Main-Imagenes/mural_bienvenida.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}


.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
}

.hero-content h1, .hero-content p {
    font-family: 'Poppins', sans-serif;
}

/* Mapa clickeable */
.map-link-container {
    position: fixed;
    right: 2rem;
    top: 5.5rem;
    z-index: 1100;
    animation: slideInDown 0.6s ease-out;
}

.map-link-container a {
    display: block;
    text-decoration: none;
}

.map-image {
    width: 220px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.map-image:hover {
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Responsivo: esconder mapa en pantallas pequeñas */
@media (max-width: 768px) {
    .map-link-container {
        display: none;
    }
}

/* Widget de clima */
.weather-widget {
    position: fixed;
    right: 2rem;
    top: 5.5rem; /* navbar (aprox 70px) + espaciado pequeño */
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(240,250,245,0.95) 100%);
    color: #1a1a1a;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15), 
                0 0 1px rgba(76,175,80,0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 180px;
    font-size: 0.95rem;
    z-index: 1100; /* debajo de navbar pero encima del resto */
    animation: slideInDown 0.6s ease-out;
    border: 1px solid rgba(76,175,80,0.1);
    transition: all 0.3s ease;
}

.weather-widget:hover {
    box-shadow: 0 15px 45px rgba(0,0,0,0.2),
                0 0 1px rgba(76,175,80,0.5);
    transform: translateY(-2px);
}

.weather-widget img {
    width: 52px;
    height: 52px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.weather-widget > div {
    line-height: 1.4;
}

.weather-widget > div > div:first-child {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.weather-widget > div > div:last-child {
    font-size: 0.85rem;
    color: var(--color-muted);
    text-transform: capitalize;
}

/* Animación de entrada suave para el widget */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo: esconder widget en pantallas pequeñas */
@media (max-width: 768px) {
    .weather-widget {
        right: 1rem;
        top: 5rem;
        min-width: 160px;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    
    .weather-widget img {
        width: 44px;
        height: 44px;
    }
    
    .weather-widget > div > div:first-child {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .weather-widget { display: none; }
}

/* Secciones generales */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1rem;
}

section h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    color: var(--color-primary-dark);
    font-family: 'Poppins', sans-serif;
}

section .section-sub {
    text-align: center;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

/* Fondos por seccion */
.rooms { background: var(--bg-odd); }
.farm { background: var(--bg-even); }
.services { background: var(--bg-odd); }
.contact { background: var(--bg-even); }

.section-accent {
    display:inline-block;
    height:3px;
    width:100px;
    background: linear-gradient(90deg,var(--color-primary),var(--color-accent));
    border-radius:2px;
    margin: .8rem auto 1.6rem;
    box-shadow: 0 2px 8px rgba(76,175,80,0.15);
}

/* Sección de habitaciones */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.room-item {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-align: center;
}

.room-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.room-item h3 {
    padding: 1rem;
    font-size: 1.1rem;
    color: #333;
}

/* Sección de la granja */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery img, .gallery video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.gallery img:hover, .gallery video:hover {
    transform: scale(1.05);
}

/* Sección de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.service-item {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(76,175,80,0.06), rgba(255,255,255,0.0));
    border-radius: 10px;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Sección de contacto */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-details {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(76,175,80,0.08) 0%, rgba(76,175,80,0.03) 100%);
    border-radius: 12px;
    border: 2px solid rgba(76,175,80,0.15);
}

.contact-details h3 {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    align-items: flex-start;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--color-primary);
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--color-primary-dark);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.contact-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.contact-info a {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
}

.map-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.map-hint {
    text-align: center;
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    margin: 0;
}

.google-map {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(76,175,80,0.35);
    box-shadow: 0 8px 25px rgba(76,175,80,0.15);
}

.contact-info a:hover .google-map {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(76,175,80,0.2);
}

/* Estilos responsivos para el contacto */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-details {
        padding: 1.5rem;
    }
    
    .contact-item {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .contact-item i {
        font-size: 1.2rem;
    }
}

/* Footer */
footer {
    background: linear-gradient(90deg, var(--color-primary-dark), #1b5e20);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* botones generales */
.btn {
    display:inline-block;
    padding: .7rem 1rem;
    background: var(--color-primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}
.btn:hover{ background: var(--color-primary-dark); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-container {
        padding: 3rem 1rem;
    }
}

/* Modal de Galería */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.4s ease;
}

.gallery-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.gallery-close:hover {
    color: var(--color-accent);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 2001;
}

.gallery-nav:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    z-index: 2001;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive galería modal */
@media (max-width: 768px) {
    .gallery-nav {
        padding: 0.5rem;
        font-size: 1.5rem;
    }
    
    .gallery-prev {
        left: 0.5rem;
    }
    
    .gallery-next {
        right: 0.5rem;
    }
    
    .gallery-close {
        top: -35px;
        font-size: 2rem;
    }
}
.hero-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  color: #333;
}
.precio-habitacion {
  text-align: center;
  margin-top: 2rem;
}

.precio-habitacion p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2f2f2f;
}

.precio-habitacion span {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2e7d32; /* verde acorde al sitio */
}
