/* Variables de Diseño */
:root {
    --brown-wood: #663333;
    --brown-dark: #E6E6E6;
    --green-forest: #2e7d32;
    --white: #ffffff;
    --gray-bg: #f8f9fa;
    --text-color: #333333;
}

/* General */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; color: var(--text-color); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; transition: 0.3s; }
.container { max-width: 1200px; margin: auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-gray { background-color: var(--gray-bg); }
.text-center { text-align: center; }

/* Navegación */
header { background: var(--brown-dark); color: white; padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: auto; padding: 0 20px; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 25px; }
.nav-links a { color: #663333; font-weight: 400; font-size: 0.9rem; text-transform: uppercase; }
.nav-links a:hover { color: var(--green-forest); }
.nav-mobile-btn { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero { 
    height: 90vh; 
    background: url('assets/img/hero-bg.jpg') no-repeat center center/cover;
    position: relative;
}
.hero-overlay { background: rgba(0,0,0,0.5); height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-content { text-align: center; color: white; padding: 0 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 700px; margin-inline: auto; }
.btn-main { background: var(--green-forest); color: white; padding: 15px 35px; border-radius: 5px; font-weight: bold; display: inline-block; }
.btn-sec { border: 2px solid white; color: white; padding: 13px 35px; border-radius: 5px; font-weight: bold; display: inline-block; margin-left: 15px; }

/* Nosotros */
.about-wrapper { max-width: 900px; margin: auto; text-align: center; }
.sub-title { color: var(--green-forest); font-weight: bold; text-transform: uppercase; letter-spacing: 2px; }
.section-title { font-size: 2.5rem; margin: 15px 0 30px; text-align: center; }
.mision-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 50px; }
.mv-card { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* Productos */
.section-intro { text-align: center; max-width: 700px; margin: -20px auto 50px; }
.product-item { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; margin-bottom: 80px; align-items: center; }
.product-item.rev { direction: rtl; }
.product-item.rev .product-info { direction: ltr; }
.product-info h3 { font-size: 2rem; color: var(--brown-wood); margin-bottom: 15px; }
.product-info ul { margin: 20px 0; list-style-position: inside; }
.product-info li { margin-bottom: 8px; font-weight: 500; }

/* Sliders */
.slider { position: relative; overflow: hidden; border-radius: 12px; height: 350px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.slides { display: flex; width: 100%; height: 100%; transition: transform 0.6s ease-in-out; }
.slides img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }

/* Casas */
.dark-bg { background-color: var(--brown-wood); color: white; }
.white { color: white !important; }
.casas-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; }
.features { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 15px; }
.features span { background: rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 20px; font-size: 0.85rem; }

/* Servicios Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { text-align: center; padding: 40px; background: white; border: 1px solid #eee; transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.service-card .icon { font-size: 3rem; display: block; margin-bottom: 20px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }
.full-width { width: 100%; cursor: pointer; border: none; font-size: 1.1rem; }
.map-box { margin-top: 30px; border-radius: 8px; overflow: hidden; }

/* Footer */
footer { background: #1a1a1a; color: #888; text-align: center; padding: 40px 0; font-size: 0.9rem; }

/* Mobile */
@media (max-width: 992px) {
    .product-item, .casas-wrapper, .contact-grid { grid-template-columns: 1fr; }
    .product-item.rev { direction: ltr; }
    .hero h1 { font-size: 2.2rem; }
    .mision-vision { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; } /* En producción deberías añadir un menú colapsable */
    .nav-mobile-btn { display: block; }
    .hero-btns a { display: block; margin: 10px 0; width: 100%; }
    .btn-sec { margin-left: 0; }
}
/* Estilos Botón WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Efecto de parpadeo suave para llamar la atención */
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}

/* Ajuste para móviles para que no estorbe tanto */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}