/* ====== Variables de colores y altura del header ====== */
:root {
  --walnut: #5B3A29;
  --cedar: #944131;
  --maple-light: #E7B3A3;
  --maple-dark: #934131;
  --cocoa: #231A13;
  --bone: #F5F5F5;
  --terracotta: #D47C48;
  --moss-green: #4A5B3A;
  --header-height: 60px;
}

/* ====== Reset básico ====== */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Manrope',sans-serif; color:#333; line-height:1.6; background-color:#fff; }
.container { max-width:1200px; margin:0 auto; padding:0 1rem; }

/* ====== Header ====== */
.header {
    background: var(--bone);
    border-bottom:1px solid #eee;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    height: var(--header-height);
}
.header-container {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 1rem;
}
.logo {
    font-size:1.4rem;
    font-weight:700;
    display:flex;
    align-items:center;
    color:var(--walnut);
}
.nav-menu {
    display:flex;
    gap:1rem;
}
.nav-link {
    text-decoration:none;
    color:var(--walnut);
    font-weight:600;
    transition:color 0.3s ease;
}
.nav-link:hover {
    color:var(--terracotta);
}
.mobile-menu-button {
    display:none;
    background:none;
    border:none;
    font-size:1.5rem;
    cursor:pointer;
    color: var(--walnut);
}
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bone);
    padding: 1rem;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.mobile-menu a {
    padding: 0.5rem 0;
    color: var(--walnut);
    text-decoration: none;
    font-weight: 600;
}

/* ====== Hero ====== */
.hero {
    position: relative;
    background-color: #8C523B;
    color: white;
    padding: 8rem 1rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding-top: calc(8rem + var(--header-height));
}

.hero-content {
    text-align: center;
    max-width: 90%;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--terracotta);
    color: white;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #b96235;
}

/* ====== Sliders laterales ====== */
.hero-slider {
    position: absolute;
    display: flex;
    gap: 1rem;
    z-index: 1;
    white-space: nowrap;
}

.left-slider {
    left: 0;
    top: 80%;
    animation: slideRight 25s linear infinite;
}

.right-slider {
    right: 0;
    top: 15%;
    animation: slideLeft 25s linear infinite;
}

.hero-slider img {
    width: 150px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

/* ====== Animaciones ====== */
@keyframes slideRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

@keyframes slideLeft {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-slider img {
        width: 100px;
        height: 60px;
    }
    .hero {
        padding-top: calc(8rem + var(--header-height) + 2rem);
    }
    .left-slider {
        top: 80%;
    }
    .right-slider {
        top: 15%;
    }
    .nav-menu {
        display: none;
    }
    .mobile-menu-button {
        display: block;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .whatsapp-btn {
        width: 70px;
        height: 70px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .whatsapp-btn svg {
        width: 36px;
        height: 36px;
        margin: 0;
    }
    .whatsapp-text {
        display: none;
    }
}

/* ====== Responsive extra para móviles pequeños (menos de 480px) ====== */
@media (max-width: 480px) {
    .hero-slider img {
        width: 80px;
        height: 50px;
    }
    .left-slider {
        top: 65%;
    }
    .right-slider {
        top: 3%;
    }
}

/* ====== Secciones ====== */
.section {
    padding: 4rem 1rem;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
}

/* ====== Footer ====== */
.footer {
    background: var(--cocoa);
    color: #fff;
    padding: 2rem 1rem;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-description {
    max-width: 400px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.footer-contact h3 {
    margin-bottom: 0.5rem;
}
.footer-contact ul {
    list-style: none;
    padding: 0;
}
.footer-contact li {
    margin-bottom: 0.5rem;
}
.footer-bottom {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
}

/* ====== Formulario de contacto ====== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form label {
    font-weight: 600;
    color: white;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--terracotta);
    outline: none;
    box-shadow: 0 0 4px rgba(212,124,72,0.3);
}

/* ====== Botón flotante WhatsApp ====== */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    height: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-family: 'Manrope',sans-serif;
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.whatsapp-btn svg {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}
.whatsapp-text {
    display: inline-block;
}

/* ====== Mensajes de resultado del formulario ====== */
.mensaje-resultado {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.6s ease forwards;
}

.mensaje-resultado p {
  margin: 0;
}

.mensaje-resultado.success {
  background-color: rgba(74, 91, 58, 0.15);
  border: 1px solid var(--moss-green);
  color: var(--moss-green);
}

.mensaje-resultado.error {
  background-color: rgba(212, 124, 72, 0.15);
  border: 1px solid var(--terracotta);
  color: var(--terracotta);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}