/* ==========================================================================
   ÁUREA - HOJA DE ESTILOS
   Versión con escalado fluido y responsive robusto.

   CAMBIOS PRINCIPALES RESPECTO A LA VERSIÓN ANTERIOR:
   - Tipografía y espaciados fluidos con clamp() -> se adaptan al zoom
   - Grillas con minmax(min(Xpx, 100%), 1fr) -> nunca desbordan
   - Alturas fijas reemplazadas por aspect-ratio
   - Navbar sin padding fijo de 140px
   - Nuevo breakpoint para celulares chicos (480px)
   - Paleta y diseño originales intactos
   ========================================================================== */

/* ==========================================================================
   RESET & VARIABLES GLOBALES
   ========================================================================== */
:root {
    /* Paleta de colores principal */
    --primary: #0c2a47;
    --primary-dark: #0c2a47;
    --primary-light: #e6f0fa;
    --secondary: #00b4d8;

    /* Nueva paleta Verde (Sección Jardinería) */
    --green-main: #2e7d32;
    --green-light: #e8f5e9;
    --green-hover: #1b5e20;

    /* Tonos Neutros */
    --dark: #1e293b;
    --gray-dark: #475569;
    --gray-light: #f8fafc;
    --border-color: #e2e8f0;
    --white: #ffffff;

    /* Acento & Destacados */
    --accent: #ff6b35;
    --accent-hover: #e0531f;
    --warning: #f59e0b;

    /* Tipografía */
    --font-family: 'Plus Jakarta Sans', sans-serif;

    /* Sombras & Transiciones */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 12px;

    /* --- NUEVAS VARIABLES DE LAYOUT --- */
    --header-h: 80px;                          /* alto del header fijo */
    --gutter: clamp(16px, 4vw, 40px);          /* margen lateral fluido */
    --container-max: 1200px;
    --section-space: clamp(48px, 8vw, 80px);   /* aire vertical fluido */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* 100% respeta el tamaño de fuente que el usuario configuró en su navegador.
       Con font-size fijo en 16px se ignoraba esa preferencia. */
    font-size: 100%;
    /* Evita que los anclajes queden tapados por el header fijo */
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font-family);
    color: var(--dark);
    background-color: #def7f1;
    line-height: 1.6;
    overflow-x: hidden;
    /* Evita que palabras largas (mails, URLs) rompan el layout */
    overflow-wrap: break-word;
}

/* Ninguna imagen puede ser más ancha que su contenedor */
img,
svg,
video {
    max-width: 100%;
    height: auto;
}

/* Los hijos de un grid no se encogen por debajo de su contenido sin esto.
   Es la causa silenciosa de la mayoría de los desbordes horizontales. */
.hero-container > *,
.corporate-wrapper > *,
.contact-grid > *,
.footer-container > *,
.services-grid > *,
.gardening-grid > *,
.why-us-grid > *,
.steps-grid > *,
.ba-grid > *,
.testimonials-grid > * {
    min-width: 0;
}

/* ==========================================================================
   ESTILOS GENERALES & REUTILIZABLES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section-padding {
    padding: var(--section-space) 0;
}

.bg-light {
    background-color: var(--gray-light);
}

.bg-primary {
    background-color: var(--primary);
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-success { color: var(--green-main); }
.text-warning { color: var(--warning); }

.margin-top-lg { margin-top: clamp(24px, 4vw, 40px); }

/* Encabezados de Sección */
.section-header {
    margin-bottom: clamp(32px, 5vw, 50px);
}

.section-header h2 {
    font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
    margin-top: 8px;
    margin-bottom: 15px;
    line-height: 1.25;
}

.section-header p {
    color: var(--gray-dark);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
    max-width: 650px;
    margin: 0 auto;
}

.sub-title {
    display: inline-block;
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-title-green {
    color: var(--green-main);
    background-color: var(--green-light);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    /* Permite que el texto del botón se parta en pantallas muy angostas
       en lugar de estirar el botón fuera de la pantalla */
    max-width: 100%;
    text-align: center;
}

.btn-primary {
    background-color: rgb(13, 85, 17);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-green {
    background-color: var(--green-main);
    color: var(--white);
}

.btn-green:hover {
    background-color: var(--green-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1eb956;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-lg {
    padding: 15px 32px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

/* ANTES: padding: 0 140px con max-width: 100%.
   Esos 280px fijos rompían el nav apenas achicaba el viewport (zoom o notebook).
   Ahora usa el mismo contenedor centrado que el resto del sitio. */
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--header-h);
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.logo-icon {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
    color: var(--primary);
    flex-shrink: 0;
}

/* ANTES: 3rem fijos. Ahora escala entre 1.75rem y 3rem según el ancho real. */
.brand-name {
    font-family: 'Unna', serif;
    font-size: clamp(1.75rem, 1rem + 2.8vw, 3rem);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--dark);
    line-height: 1;
}

.brand-name span {
    color: var(--primary);
}

.brand-sub {
    display: block;
    font-size: clamp(0.62rem, 0.55rem + 0.25vw, 0.7rem);
    color: var(--gray-dark);
    font-weight: 500;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: clamp(14px, 1.6vw, 25px);
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    /* Se apoya en la variable del header en lugar de un 150px suelto */
    padding-top: calc(var(--header-h) + clamp(30px, 6vw, 70px));
    padding-bottom: clamp(50px, 8vw, 90px);
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 40px);
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.badge-light {
    background-color: rgba(255,255,255,0.2);
    color: var(--white);
}

/* ANTES: 3rem fijos -> se comía la pantalla en celulares y con zoom alto */
.hero-content h1 {
    font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-content p {
    font-size: clamp(1rem, 0.95rem + 0.5vw, 1.15rem);
    color: var(--gray-dark);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: clamp(28px, 4vw, 40px);
    flex-wrap: wrap;
}

.trust-indicators {
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-dark);
}

.trust-item i {
    color: var(--primary);
}

.hero-image-wrapper {
    position: relative;
}

/* ANTES: la tarjeta no tenía altura y la imagen pedía height:100% -> colapsaba.
   Ahora la proporción la define aspect-ratio y escala con el ancho. */
.hero-image-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
}

.hero-image-card img,
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: clamp(12px, 2vw, 20px);
    display: block;
}

.floating-badge {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    font-size: 0.9rem;
}

.badge-1 {
    top: 30px;
    left: -20px;
}

.badge-2 {
    bottom: 30px;
    right: -20px;
}

/* ==========================================================================
   SERVICIOS DE LIMPIEZA
   ========================================================================== */
/* El min() es la clave: si el contenedor mide menos que el mínimo pedido,
   la columna se adapta al 100% en lugar de desbordar. */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(18px, 2.5vw, 25px);
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: #56b479;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

/* ==========================================================================
   SECCIÓN JARDINERÍA
   ========================================================================== */
.gardening-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(18px, 2.5vw, 25px);
}

.gardening-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.gardening-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* ANTES: height: 180px fijo. Ahora la proporción manda y escala sola. */
.gardening-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.gardening-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gardening-card:hover .gardening-img img {
    transform: scale(1.08);
}

.gardening-content {
    padding: clamp(18px, 2.5vw, 25px);
    position: relative;
}

.gardening-icon {
    width: 45px;
    height: 45px;
    background-color: var(--green-light);
    color: var(--green-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.gardening-content h3 {
    font-size: clamp(1.05rem, 1rem + 0.3vw, 1.15rem);
    margin-bottom: 10px;
}

.gardening-content p {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.gardening-banner {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: clamp(22px, 4vw, 35px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.gardening-banner-content h3 {
    font-size: clamp(1.1rem, 1rem + 0.7vw, 1.3rem);
    color: var(--green-hover);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   POR QUÉ ELEGIRNOS
   ========================================================================== */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(20px, 3vw, 30px);
}

.why-card {
    padding: clamp(20px, 3vw, 30px);
    border-radius: var(--radius);
    background-color: #79df9e;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: var(--transition);
}

.why-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.why-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.why-card h4 {
    font-size: clamp(1.05rem, 1rem + 0.3vw, 1.15rem);
    margin-bottom: 10px;
}

.why-card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.quote-box {
    margin-top: clamp(32px, 5vw, 50px);
    background-color: var(--primary-light);
    padding: clamp(20px, 3vw, 30px);
    border-radius: var(--radius);
    text-align: center;
    border-left: 5px solid var(--primary);
}

.quote-box h3 {
    color: var(--primary-dark);
    font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.4rem);
    font-style: italic;
}

/* ==========================================================================
   SECCIÓN EMPRESAS & EVENTOS
   ========================================================================== */
.corporate-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 50px);
    align-items: center;
}

.corporate-text h2 {
    font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.2rem);
    margin-top: 15px;
    margin-bottom: 20px;
    line-height: 1.25;
}

.corporate-list {
    list-style: none;
    margin: 25px 0 35px 0;
}

.corporate-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
}

.corporate-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.events-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 2px solid var(--primary-light);
    border-radius: 24px;
    padding: clamp(24px, 5vw, 50px);
}

.events-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.events-tags span {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-service-box {
    display: flex;
    gap: 20px;
    background-color: var(--white);
    padding: clamp(18px, 2.5vw, 25px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    align-items: flex-start;
    flex-wrap: wrap;
}

.featured-service-box i {
    font-size: 1.8rem;
    color: var(--warning);
    flex-shrink: 0;
}

/* ==========================================================================
   CÓMO TRABAJAMOS
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: clamp(20px, 3vw, 30px);
}

.step-card {
    background-color: var(--white);
    padding: clamp(22px, 3vw, 30px) clamp(18px, 2.5vw, 25px);
    border-radius: var(--radius);
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.step-card:hover {
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: clamp(2rem, 1.5rem + 1.6vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 10px;
    line-height: 1;
}

.step-card h4 {
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.2rem);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

/* ==========================================================================
   ANTES Y DESPUÉS
   ========================================================================== */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: clamp(20px, 3vw, 30px);
}

.ba-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.ba-image-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background-color: var(--border-color);
}

/* ANTES: height: 220px fijo -> las fotos se deformaban al achicar */
.ba-img-box {
    position: relative;
    aspect-ratio: 4 / 3;
}

.ba-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
}

.ba-tag.before { background-color: rgba(0, 0, 0, 0.7); }
.ba-tag.after { background-color: var(--green-main); }

.ba-info {
    padding: 18px;
    text-align: center;
}

.ba-info h4 {
    font-size: 1rem;
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(20px, 3vw, 30px);
}

.testimonial-card {
    background-color: var(--white);
    padding: clamp(22px, 3vw, 30px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stars {
    color: var(--warning);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--gray-dark);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.author-info strong {
    display: block;
    color: var(--dark);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white);
    height: auto;
    max-height: none;
    overflow: visible;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: clamp(16px, 2.2vw, 20px) clamp(18px, 2.5vw, 25px);
    text-align: left;
    background: none;
    border: none;
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-family: var(--font-family);
    transition: var(--transition);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

/* Subido de 500px a 1500px: con el texto más grande o en celular,
   una respuesta larga superaba los 500px y quedaba cortada. */
.faq-item.active .faq-answer {
    max-height: 1500px;
}

.faq-answer p {
    padding: 0 clamp(18px, 2.5vw, 25px) 20px clamp(18px, 2.5vw, 25px);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   CONTACTO & FORMULARIO
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(30px, 5vw, 50px);
}

.contact-cards-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--white);
    padding: 18px clamp(16px, 2.2vw, 22px);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    min-width: 0;
}

.contact-detail-card i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-detail-card strong {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.contact-detail-card a, .contact-detail-card span {
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    word-break: break-word;
}

.contact-form-wrapper {
    background-color: #0c2a47;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form-wrapper h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
    margin-bottom: 25px;
    color: white;
}

.quote-form .form-group {
    margin-bottom: 20px;
}

.quote-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 15px;
}

.quote-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    /* 1rem = 16px evita que iOS haga zoom automático al tocar el campo */
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.quote-form textarea {
    resize: vertical;
    min-height: 110px;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.error-msg {
    display: none;
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 4px;
}

.form-group.error input,
.form-group.error select {
    border-color: #dc2626;
}

.form-group.error .error-msg {
    display: block;
}

.form-success-message {
    text-align: center;
    padding: 30px;
}

.form-success-message i {
    font-size: 3rem;
    color: #16a34a;
    margin-bottom: 15px;
}

.hidden {
    display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--dark);
    color: #94a3b8;
    padding-top: clamp(45px, 7vw, 70px);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(30px, 5vw, 50px);
    padding-bottom: clamp(32px, 5vw, 50px);
}

.footer-brand p {
    margin-top: 15px;
    font-size: 0.9rem;
    max-width: 350px;
}

.footer-links h4, .footer-social h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.social-icons a:hover {
    background-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    font-size: 0.85rem;
}

/* Color blanco para el logo y nombre de la empresa en el Footer */
.footer-brand .brand-name,
.footer-brand .brand-name span,
.footer-brand .logo-text,
.footer-brand .logo-icon {
    color: #ffffff !important;
}

/* Color claro para la bajada/descripción debajo del logo en el footer */
.footer-brand p {
    color: #e2e8f0 !important;
}

/* ==========================================================================
   BOTONES FLOTANTES
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background-color: var(--dark);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 35px;
    width: 45px;
    height: 45px;
    background-color: var(--white);
    color: var(--dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   ANIMACIONES SCROLL
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Respeta a quien configuró "reducir movimiento" en su sistema */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* --- Notebooks chicas y zoom medio --- */
@media (max-width: 1100px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* --- Tablets --- */
@media (max-width: 992px) {
    .hero-container,
    .corporate-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons, .trust-indicators {
        justify-content: center;
    }

    .badge-1, .badge-2 {
        display: none;
    }

    .corporate-image {
        order: -1;
    }

    .hero-image-card {
        aspect-ratio: 16 / 10;
        max-width: 620px;
        margin: 0 auto;
    }
}

/* --- Celulares --- */
@media (max-width: 768px) {
    :root {
        --header-h: 70px;
    }

    .hamburger {
        display: flex;
    }

    .nav-btn {
        display: none;
    }

    .navbar {
        position: absolute;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .navbar.active {
        max-height: 480px;
        box-shadow: var(--shadow-md);
        overflow-y: auto;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .quote-form .form-row {
        grid-template-columns: 1fr;
    }

    .gardening-banner {
        flex-direction: column;
        text-align: center;
    }

    .gardening-banner-content h3 {
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

/* --- Celulares chicos (nuevo) --- */
@media (max-width: 480px) {
    .ba-image-container {
        grid-template-columns: 1fr;
    }

    .hero-buttons .btn,
    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        justify-content: center;
    }

    .trust-indicators {
        gap: 12px;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        font-size: 1.7rem;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        bottom: 84px;
        right: 24px;
        width: 40px;
        height: 40px;
    }

    .events-tags span {
        font-size: 0.82rem;
        padding: 6px 14px;
    }

    .featured-service-box {
        gap: 14px;
    }
}

/* --- Pantallas muy anchas --- */
@media (min-width: 1600px) {
    :root {
        --container-max: 1320px;
    }
}