/* 
   DESIGN SYSTEM - AGROSERVICIOS PREMIUM
   Variables, Glassmorphism, Sophisticated Gradients & Animations
*/

:root {
    --primary: #2d5a27;
    --primary-light: #4caf50;
    --primary-dark: #1b3d17;
    --accent: #ffb300;
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --base-font-size: 18px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    font-size: var(--base-font-size);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 100px;
    /* Separación mayor de los bordes */
}

/* Ocultar barra de desplazamiento visualmente pero permitir scroll */
html,
body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE y Edge */
}

::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari y Opera */
}

/* Navigation - Modern Glassmorphism */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

header.scrolled .logo {
    color: var(--primary-dark);
}

.logo img {
    max-height: 120px;
    width: auto;
    margin: 0;
    padding: 0;
    display: block;
}

.logo-text {
    margin-left: -35px;
    padding: 0;
    line-height: 0.9;
    display: block;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
    /* Más espacio entre enlaces */
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
    opacity: 0.9;
    letter-spacing: 0.5px;
    /* Más aire entre letras */
    text-transform: uppercase;
    /* Para que se vea más profesional */
}

header.scrolled .nav-links a {
    color: var(--primary-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--accent) !important;
    opacity: 1;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section - Immersive */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to top, var(--bg-light), transparent);
}

.hero-content {
    max-width: 900px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.8rem, 9vw, 5rem);
    line-height: 1.05;
    margin-bottom: 28px;
    font-weight: 800;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-inline: auto;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-light);
    color: var(--white);
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-hero:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.5);
}

/* Sección Cómo Funciona - Minimalista */
.how-it-works {
    background: var(--white);
    padding: 120px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step-item {
    text-align: center;
    padding: 60px 40px;
    border-radius: 30px;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    transition: var(--transition);
}

.step-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(76, 175, 80, 0.06);
    line-height: 1;
    z-index: 0;
}

.step-item i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 30px;
    display: block;
    position: relative;
    z-index: 1;
}

.step-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    position: relative;
    z-index: 1;
}

.step-item p {
    font-size: 1.15rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Sections Common Styles */
section {
    padding: 120px 0;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: -1.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Services Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.service-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.add-service-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    color: var(--primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 2;
}

.add-service-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

.service-info {
    padding: 25px;
    /* Menos padding para hacerlo más compacto */
}

.service-info h3 {
    font-size: 1.3rem;
    /* Títulos más sutiles */
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-weight: 800;
}

.service-info p {
    color: var(--text-muted);
    font-size: 1rem;
    /* Texto más pequeño */
    margin-bottom: 20px;
    line-height: 1.5;
}

.service-features {
    list-style: none;
    margin-bottom: 25px;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.service-features i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.tag {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-add-large {
    width: 100%;
    background: var(--primary-light);
    color: var(--white);
    padding: 18px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.btn-add-large:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.btn-add-large i {
    font-size: 1.3rem;
}

/* Quote Section - Split Design */
.quote-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    position: relative;
}

.quote-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.quote-summary,
.quote-form {
    background: var(--white);
    padding: 40px;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
}

.quote-summary {
    position: sticky;
    top: 100px;
}

.quote-items {
    margin: 24px 0;
    max-height: 400px;
    overflow-y: auto;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    animation: slideIn 0.3s ease-out;
}

.remove-item {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.remove-item:hover {
    background: #ef4444;
    color: var(--white);
}

.quote-total {
    border-top: 2px dashed #e2e8f0;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-count {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

/* Forms - Floating Labels Style */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.btn-whatsapp {
    width: 100%;
    background: #25D366;
    color: var(--white);
    padding: 20px;
    border-radius: 16px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

/* Stats Section */
.stats {
    background: var(--primary-dark);
    padding: 60px 0;
    color: var(--white);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1 1 200px;
    max-width: 250px;
    text-align: center;
    margin: 0; 
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
    color: var(--white);
    opacity: 0.8;
}

/* Footer Premium */
footer {
    background: #0f172a;
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
    margin-left: -40px;
}

.footer-brand img {
    height: 100px;
    width: auto;
    display: block;
}

.footer-logo-text {
    position: absolute;
    left: 120px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}


.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--primary-light);
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-icons a {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--white);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

/* Modal Styling General */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--white);
    border-radius: 32px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: fadeInUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0 !important;
}

/* Modal de Detalles de Servicio (Diseño Red Social - Compacto) */
.details-container {
    max-width: 850px;
    /* Reducido para un look más refinado */
    width: 95%;
    height: 600px;
    padding: 0 !important;
    display: flex;
}

.details-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.details-media {
    flex: 0 0 55%;
    background: #000;
    position: relative;
    display: flex;
    overflow: hidden;
    height: 100%;
}

/* Slider CSS Restaurado */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
}

.slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item img,
.slider-item video {
    width: 100%;
    height: 100%;
    object-fit: contain; /*<- se puede cambiar por "contain" si es necesario */
    /* Esto asegura que ocupe todo el espacio */
    display: block;
    background-color: #000;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    backdrop-filter: blur(8px);
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 20px;
    border-radius: 10px;
}

.details-info-box {
    flex: 0 0 45%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 1px solid #efefef;
}

/* Header del Modal (Estilo Perfil) */
.info-user-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #efefef;
    gap: 12px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.logo-avatar {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.user-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #262626;
}

.tag-compact {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-dots {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #262626;
}

/* Área de contenido Scrolleable (Estilo Descripción/Comentarios) */
.info-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scrollbar-width: none;
}

.info-scroll-content::-webkit-scrollbar {
    display: none;
}

.info-scroll-content h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-align: left;
    color: #262626;
}

#detailDescription {
    font-size: 0.85rem;
    /* Letra más fina y pequeña estilo IG */
    line-height: 1.4;
    color: #262626;
    margin-bottom: 15px;
}

.benefits-section h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.social-benefits-list {
    list-style: none;
    padding: 0;
}

.social-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #262626;
}

.social-benefits-list li i {
    color: var(--primary);
    margin-top: 3px;
    font-size: 0.8rem;
}

/* Footer del Modal (Interacciones y CTA) */
.info-social-footer {
    padding: 12px 16px 20px;
    border-top: 1px solid #efefef;
    background: white;
}

.interactions {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 1.4rem;
    color: #262626;
}

.interactions i {
    cursor: pointer;
    transition: var(--transition);
}

.interactions i:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.ml-auto {
    margin-left: auto;
}

.cta-container {
    width: 100%;
}

.btn-instagram-style {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-instagram-style:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Slider Compacto Update */
.slider-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.dot {
    width: 6px;
    height: 6px;
}

.dot.active {
    width: 18px;
}

/* Mobile Responsive Modal Update */
@media (max-width: 768px) {
    .details-container {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        width: 90%;
    }

    .details-layout {
        flex-direction: column;
    }

    .details-media {
        flex: 0 0 300px;
        min-height: 300px;
    }

    .details-info-box {
        flex: 1;
        border-left: none;
        border-top: 1px solid #efefef;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* WhatsApp Flotante - SOPORTE SIEMPRE VISIBLE */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: var(--transition);
}

.float-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.float-text {
    font-weight: 700;
    font-size: 1.1rem;
}

.whatsapp-float i {
    font-size: 2rem;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    background: #128C7E;
}

/* Sección de Resultados Reales */
.results-examples {
    padding: 120px 0;
    background: #fdfdfd;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.result-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.result-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.result-image {
    position: relative;
    height: 350px;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(255, 179, 0, 0.4);
}

.result-info {
    padding: 40px;
}

.result-info h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-weight: 800;
}

.result-info p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Relleno adicional para secciones que se ven vacías */
.steps-grid,
.services-grid,
.results-grid {
    min-height: 400px;
    padding-bottom: 50px;
}

/* Mejoras de Formulario para usuarios mayores */
.form-group input,
.form-group textarea {
    padding: 20px;
    font-size: 1.1rem;
    border: 2px solid #cbd5e0;
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .quote-container {
        grid-template-columns: 1fr;
    }

    .quote-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
        /* Menos espacio en móviles para que quepa todo */
    }

    .navbar {
        padding: 15px 24px;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
    }

    .float-text {
        font-size: 0.9rem;
    }
}

/* ================================
   MODAL CONFIRMACIÓN - "Cotización Lista"
   Estilo premium acorde a la página
=================================== */

/* #confirmationModal.modal{ */
  /* ya tienes display:none en .modal, esto se usa cuando lo abras con JS */
/* } */

/* Contenedor del modal */
#confirmationModal .modal-content{
  width: min(620px, 96vw);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  position: relative;
}

/* Franja superior con degradé elegante */
#confirmationModal .modal-content::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 70px;
  background: linear-gradient(135deg, rgba(76,175,80,0.22), rgba(255,179,0,0.18));
  pointer-events: none;
}

/* Botón cerrar */
#confirmationModal .close-modal{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--primary-dark);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}
#confirmationModal .close-modal:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-md);
}

/* Cuerpo interno (padding) */
#confirmationModal .modal-content{
  padding: 34px 34px 28px !important;
}

/* Icono principal */
#confirmationModal .modal-icon{
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin: 50px auto 16px;
  background: linear-gradient(135deg, rgba(37,211,102,0.18), rgba(76,175,80,0.12));
  border: 1px solid rgba(37,211,102,0.25);
  box-shadow: 0 18px 40px rgba(37,211,102,0.18);
  position: relative;
  z-index: 1;
}
#confirmationModal .modal-icon i{
  font-size: 2.2rem;
  color: #25D366;
}

/* Título */
#confirmationModal h3{
  text-align: center;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--primary-dark);
  margin: 8px 0 10px;
  position: relative;
  z-index: 1;
}

/* Texto */
#confirmationModal p{
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto 22px;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

/* Acciones (botones) */
#confirmationModal .modal-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

/* Botón cancelar */
#confirmationModal .btn-cancel{
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: var(--text-main);
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
#confirmationModal .btn-cancel:hover{
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.10);
  box-shadow: var(--shadow-md);
}

/* Botón confirmar (WhatsApp) */
#confirmationModal .btn-confirm{
  background: linear-gradient(135deg, #25D366, #4caf50);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 14px 28px rgba(37,211,102,0.22);
}
#confirmationModal .btn-confirm:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(37,211,102,0.28);
}

/* Pequeño “detalle” abajo (línea suave) */
#confirmationModal .modal-content::after{
  content: "";
  display: block;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.08), transparent);
}

/* Responsive */
@media (max-width: 520px){
  #confirmationModal .modal-content{
    padding: 28px 20px 22px !important;
    border-radius: 24px;
  }
  #confirmationModal .modal-actions{
    grid-template-columns: 1fr;
  }
}

/* Animación Modal Confirmación */
#confirmationModal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#confirmationModal.modal-active {
    opacity: 1;
}

#confirmationModal .modal-content {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

#confirmationModal.modal-active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.btn-clear{
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.08);
}

/* Hover elegante */
.btn-clear:hover{
    background: #ef4444;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.25);
}

/* Click efecto */
.btn-clear:active{
    transform: scale(0.95);
}

/* Animación suave del icono */
.btn-clear i{
    transition: transform 0.3s ease;
}

.btn-clear:hover i{
    transform: rotate(-10deg) scale(1.1);
}

.navbar{
    flex-wrap: wrap;
}

.nav-links{
    display: flex;
    flex-wrap: wrap;
    gap: clamp(15px, 3vw, 50px);
    justify-content: flex-end;
}

.nav-links a{
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    white-space: nowrap;
}

/* Tablets */
@media (max-width: 1024px){

    .container{
        padding: 0 40px;
    }

    .logo img{
        max-height: 90px;
    }

    .nav-links{
        gap: 25px;
    }

}

/* Móvil */
@media (max-width: 768px){

    .navbar{
        height: auto;
        padding: 15px 0;
    }

    .logo img{
        max-height: 70px;
    }

    .logo-text{
        font-size: 1.1rem;
    }

    .nav-links{
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        gap: 18px;
    }

    .nav-links a{
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }

}

html {
    font-size: clamp(16.2px, 1vw, 18px);
}

/* Títulos principales */
h1 {
    font-size: clamp(1.8rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

/* Texto general */
p {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.6;
}

/* Botones */
.btn-hero,
.btn-add-large,
.btn-whatsapp {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

@media (max-width: 480px){

    h1{
        font-size: 1.8rem;
        line-height: 1.2;
    }

    h2{
        font-size: 1.5rem;
    }

    h3{
        font-size: 1.1rem;
    }

    p{
        font-size: 0.95rem;
    }

}
