/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta Oficial Ranita Design - Verde/Azul */
    /* Tonos de la paleta */
    --color-mint-light: #D5E4CF; /* Verde menta casi blanco */
    --color-green-light: #9DCC9B; /* Verde claro suave */
    --color-green-medium: #6EB47D; /* Verde medio brillante */
    --color-green-forest: #499C70; /* Verde bosque moderado */
    --color-green-dark: #2A836B; /* Verde oscuro profundo */
    --color-green-blue: #136B69; /* Verde-azulado oscuro */
    --color-navy: #024053; /* Azul marino intenso (fondo del logo) */
    
    /* Variables semánticas */
    --color-primary: #024053; /* Azul marino - Para navegación, footer, títulos */
    --color-secondary: #2A836B; /* Verde oscuro - Para títulos principales */
    --color-accent: #6EB47D; /* Verde medio - Para botones primarios, iconos */
    --color-accent-hover: #499C70; /* Verde bosque - Para hover de botones */
    --color-link: #136B69; /* Verde-azulado - Para enlaces */
    --color-link-hover: #499C70; /* Verde bosque - Para hover de enlaces */
    
    --color-bg-dark: #024053; /* Fondo oscuro - Navbar, footer */
    --color-bg-light: #D5E4CF; /* Fondo claro - Secciones alternas */
    --color-bg-light-alt: #9DCC9B; /* Fondo claro alternativo */
    --color-bg-white: #FFFFFF; /* Blanco puro */
    --color-bg-card: #F9FFF7; /* Blanco con tinte verde para tarjetas */
    --color-bg-featured: #136B69; /* Fondo destacado - Plan profesional */
    
    --color-text: #FFFFFF; /* Texto sobre fondo oscuro */
    --color-text-dark: #024053; /* Texto principal sobre fondos claros */
    --color-text-secondary: #136B69; /* Texto secundario */
    --color-text-light: #D5E4CF; /* Texto claro sobre fondos oscuros */
    
    --color-border: #9DCC9B; /* Bordes principales */
    --color-border-light: #D5E4CF; /* Bordes sutiles */
    --color-border-dark: #2A836B; /* Bordes oscuros */
    
    --font-primary: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, span, a, li, label {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Prevenir overflow horizontal */
* {
    box-sizing: border-box;
}

img, svg, iframe, video {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
    display: block;
    overflow-x: auto;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(2, 64, 83, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(213, 228, 207, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

.navbar.scrolled .nav-wrapper {
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    transition: font-size 0.3s ease;
}

.navbar.scrolled .logo {
    font-size: 1.3rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo-img {
    height: 32px;
}

.logo-text {
    color: var(--color-text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-green-medium);
}

.btn-nav {
    background: var(--color-green-blue);
    color: var(--color-text) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(42, 131, 107, 0.4);
    background: var(--color-green-dark);
    color: white !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-mint-light);
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    overflow: hidden;
    background: var(--color-bg-dark);
}

.hero-code-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero-code-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(19, 107, 105, 0.9) 0%, rgba(2, 64, 83, 0.95) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-mint-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-green-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--color-green-medium);
    color: var(--color-text);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(73, 156, 112, 0.4);
    background: var(--color-green-forest);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--color-mint-light);
    border: 2px solid var(--color-green-forest);
}

.btn-secondary:hover {
    background: rgba(110, 180, 125, 0.2);
    color: var(--color-mint-light);
    border-color: var(--color-green-forest);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-green-light);
}

.stat-label {
    color: var(--color-green-light);
    font-size: 0.9rem;
    text-align: center;
}

/* ===== SECTION STYLES ===== */
section {
    padding: 4rem 0;
}

/* Alternar fondos de secciones */
.services {
    background: var(--color-bg-light);
}

.about {
    background: var(--color-bg-light);
}

.testimonials {
    background: var(--color-bg-light-alt);
}

.portfolio {
    background: var(--color-bg-light-alt);
}

.contact {
    background: var(--color-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Títulos en todas las secciones claras */
.services .section-header h2,
.testimonials .section-header h2,
.contact .section-header h2,
.portfolio .section-header h2,
.about .section-header h2 {
    color: var(--color-green-dark);
}

.services .section-header p,
.testimonials .section-header p,
.contact .section-header p,
.portfolio .section-header p,
.about .section-header p {
    color: var(--color-navy);
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}

.service-card {
    background: var(--color-bg-card);
    border-bottom: 3px solid var(--color-green-light);
    border-radius: 20px;
    padding: 2rem 1.8rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(110, 180, 125, 0.15);
}

.service-card.featured {
    background: var(--color-bg-featured);
    border-bottom: 3px solid var(--color-navy);
    color: var(--color-text);
}

.service-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-navy);
    color: var(--color-mint-light);
    padding: 0.45rem 1.4rem;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}

.service-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
    color: var(--color-green-dark);
}

.service-card.featured h3 {
    color: var(--color-text);
}

.service-price {
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.price-old {
    font-size: 1.7rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: line-through;
}

.price-line {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.price-currency {
    font-size: 1.4rem;
    vertical-align: baseline;
    color: var(--color-navy);
}

.service-card.featured .price-currency {
    color: var(--color-text);
}

.price-amount {
    font-size: 2.9rem;
    font-weight: 700;
    color: var(--color-green-blue);
}

.service-card.featured .price-amount {
    color: var(--color-text);
}

.price-period {
    color: var(--color-navy);
    font-size: 0.95rem;
}

.service-card.featured .price-period {
    color: var(--color-text);
    opacity: 0.9;
}

.price-consult {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-green-blue);
    line-height: 1.15;
}

.service-card.featured .price-consult {
    color: var(--color-text);
}

.maintenance-consult {
    font-weight: 700;
    color: var(--color-green-blue);
}

.service-card.featured .maintenance-consult {
    color: var(--color-text);
}

.maintenance-price {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.maintenance-label {
    font-weight: 600;
    margin-right: 0.25rem;
}

.service-card:not(.featured) .maintenance-price {
    color: var(--color-green-blue);
}

.service-card:not(.featured) .maintenance-label,
.service-card:not(.featured) .maintenance-amount,
.service-card:not(.featured) .maintenance-consult {
    color: var(--color-green-blue);
}

.service-features {
    list-style: none;
    margin-bottom: 1.8rem;
    display: grid;
    gap: 0.55rem;
}

.service-features li {
    color: var(--color-navy);
    font-size: 0.98rem;
    margin: 0;
}

.service-card.featured .service-features li {
    color: var(--color-text);
}

.btn-service {
    display: block;
    text-align: center;
    padding: 1rem;
    background: var(--color-green-medium);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-service:hover {
    background: var(--color-green-forest);
    color: white;
}

.btn-service-featured {
    background: var(--color-bg-white);
    color: var(--color-green-blue);
    border: 2px solid var(--color-green-blue);
    font-weight: 600;
}

.btn-service-featured:hover {
    background: var(--color-mint-light);
    color: var(--color-navy);
    border-color: var(--color-green-blue);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-white);
    color: var(--color-navy);
    border: 2px solid var(--color-green-light);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: var(--color-green-light);
    color: var(--color-navy);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--color-green-medium);
    color: var(--color-text);
    border-color: var(--color-green-medium);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    background: var(--color-bg-white);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--color-green-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-item:hover {
    border-color: var(--color-green-medium);
    box-shadow: 0 10px 30px rgba(110, 180, 125, 0.2);
    transform: translateY(-5px);
}


.portfolio-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.portfolio-info {
    padding: 1.25rem;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--color-navy);
}

.portfolio-info p {
    color: var(--color-navy);
    margin-bottom: 0.6rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

.portfolio-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(157, 204, 155, 0.2);
    color: var(--color-navy);
    border: 1px solid var(--color-green-light);
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-basic {
    background: rgba(213, 228, 207, 0.3);
    color: var(--color-navy);
    border-color: var(--color-mint-light);
}

.badge-professional {
    background: rgba(110, 180, 125, 0.2);
    color: var(--color-navy);
    border-color: var(--color-green-medium);
}

.badge-premium {
    background: linear-gradient(135deg, rgba(110, 180, 125, 0.3) 0%, rgba(73, 156, 112, 0.2) 100%);
    border-color: var(--color-green-forest);
    color: var(--color-navy);
}

.badge-personalizado {
    background: linear-gradient(135deg, rgba(18, 63, 90, 0.25) 0%, rgba(13, 31, 45, 0.25) 100%);
    border: 1px solid rgba(13, 31, 45, 0.3);
    color: var(--color-navy);
}

.btn-portfolio {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--color-green-medium);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-portfolio:hover {
    background: var(--color-green-forest);
    color: white;
    transform: translateY(-2px);
}

/* ===== ABOUT SECTION ===== */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--color-green-dark);
}

.about-content p {
    color: var(--color-green-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.about-stat {
    display: flex;
    flex-direction: column;
}

.about-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-green-medium);
}

.about-stat-label {
    color: var(--color-navy);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(110, 180, 125, 0.15);
    border-color: var(--color-green-medium);
}

.about-image .team-photo {
    width: 100%;
    height: 400px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    filter: drop-shadow(0 10px 30px rgba(2, 64, 83, 0.4)) drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

.testimonial-card {
    background: var(--color-bg-white);
    border: 2px solid var(--color-border-dark);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-green-medium);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--color-navy);
    opacity: 0.9;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-bg-light);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    border: 1px solid rgba(2, 64, 83, 0.1);
}

.author-avatar--img {
    background: var(--color-white);
    padding: 0;
}

.author-avatar--img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--color-navy);
}

.author-info p {
    color: var(--color-navy);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== CONTACT SECTION ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--color-green-dark);
}

.contact-info > p {
    color: var(--color-navy);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 2rem;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--color-green-dark);
}

.contact-item p {
    color: var(--color-navy);
    opacity: 0.8;
}

.btn-whatsapp {
    background: #25D366 !important;
    width: 100%;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-navy);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--color-bg-white);
    border: 2px solid var(--color-green-light);
    border-radius: 10px;
    color: var(--color-text-dark);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-green-dark);
    box-shadow: 0 0 0 3px rgba(42, 131, 107, 0.2);
}

.contact-form .form-feedback {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--color-green-medium);
    min-height: 1.2rem;
}

.contact-form .form-feedback.error {
    color: #c0392b;
}

.contact-form .form-feedback.success {
    color: var(--color-green-forest);
    font-weight: 600;
}

/* ===== WHAT WE DO SECTION ===== */
.what-we-do {
    background: var(--color-bg-white);
    padding: 4rem 0;
}

.what-we-do-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--color-green-dark);
    text-align: center;
}

.what-we-do-content .lead {
    font-size: 1.2rem;
    color: var(--color-navy);
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.what-we-do-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.what-we-do-item {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--color-green-light);
    transition: all 0.3s ease;
}

.what-we-do-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(110, 180, 125, 0.15);
    border-color: var(--color-green-medium);
}

.what-we-do-item .item-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.what-we-do-item h3 {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.what-we-do-item p {
    color: var(--color-navy);
    opacity: 0.85;
    line-height: 1.6;
}

/* ===== MAINTENANCE INFO BUTTON ===== */
.btn-maintenance-info {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    background: transparent;
    color: var(--color-green-blue);
    border: 1px solid var(--color-green-light);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.btn-maintenance-info:hover {
    background: var(--color-green-light);
    color: var(--color-navy);
    transform: translateY(-2px);
}

.service-card.featured .btn-maintenance-info {
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-card.featured .btn-maintenance-info:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    border-color: var(--color-text);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--color-bg-white);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 2.5rem;
    z-index: 10000;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--color-navy);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--color-green-light);
    color: var(--color-navy);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 2rem;
    color: var(--color-green-dark);
    margin-bottom: 1.5rem;
}

.modal-intro {
    font-size: 1.1rem;
    color: var(--color-navy);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.maintenance-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.maintenance-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg-card);
    border-radius: 12px;
    border: 1px solid var(--color-green-light);
}

.maintenance-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.maintenance-text h3 {
    font-size: 1.2rem;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.maintenance-text p {
    color: var(--color-navy);
    opacity: 0.85;
    line-height: 1.6;
}

.modal-footer {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.modal-footer p {
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.modal-footer .btn-primary {
    display: inline-block;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.whatsapp-float svg {
    width: 40px;
    height: 40px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.whatsapp-float svg {
    filter: brightness(0) invert(1);
}

/* ===== LEGAL PAGE ===== */
.legal-content {
    padding: 8rem 0 4rem;
    background: var(--color-bg-white);
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-green-dark);
    margin-bottom: 1rem;
}

.legal-intro {
    font-size: 1.2rem;
    color: var(--color-navy);
    opacity: 0.8;
}

.legal-section {
    background: var(--color-bg-card);
    border: 2px solid var(--color-green-light);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
}

.legal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.legal-section h2 {
    font-size: 2rem;
    color: var(--color-green-dark);
    margin-bottom: 2rem;
}

.legal-text h3 {
    font-size: 1.3rem;
    color: var(--color-navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-text p {
    color: var(--color-navy);
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.legal-text ul {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 0;
}

.legal-text ul li {
    padding: 0.75rem 0 0.75rem 2rem;
    color: var(--color-navy);
    opacity: 0.85;
    line-height: 1.6;
    position: relative;
}

.legal-text ul li::before {
    content: "•";
    color: var(--color-green-medium);
    font-size: 1.5rem;
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
}

.legal-text a {
    color: var(--color-green-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-text a:hover {
    color: var(--color-green-medium);
    text-decoration: underline;
}

.fiscal-data {
    background: var(--color-bg-white);
    border-radius: 10px;
    padding: 2rem;
}

.fiscal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.fiscal-item {
    padding: 1rem;
    border-left: 3px solid var(--color-green-medium);
}

.fiscal-item strong {
    display: block;
    color: var(--color-green-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fiscal-item p {
    color: var(--color-navy);
    font-size: 1.1rem;
    margin: 0;
    opacity: 1;
}

.legal-contact {
    text-align: center;
    background: var(--color-bg-light-alt);
    padding: 3rem;
    border-radius: 15px;
    margin: 3rem 0;
}

.legal-contact h3 {
    font-size: 1.8rem;
    color: var(--color-green-dark);
    margin-bottom: 1rem;
}

.legal-contact p {
    color: var(--color-navy);
    margin-bottom: 2rem;
}

.legal-contact .btn-primary {
    display: inline-block;
}

.legal-footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 2px solid var(--color-green-light);
}

.legal-footer small {
    color: var(--color-navy);
    opacity: 0.7;
}

.link-back {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-green-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-back:hover {
    color: var(--color-green-medium);
    transform: translateX(-5px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-green-medium);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-green-medium);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal-link {
    color: var(--color-green-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--color-green-medium);
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    .container {
        padding: 0 15px;
    }

    .logo-img {
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--color-primary);
        width: 100%;
        padding: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        margin-bottom: 2rem;
        gap: 0.75rem;
    }

    .hero-code-bg::after {
        background: radial-gradient(ellipse at center, rgba(19, 107, 105, 0.9) 0%, rgba(2, 64, 83, 0.98) 100%);
    }

    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .stat {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    .hero-stats .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.8rem;
    }

    /* Animación glow en botón WhatsApp */
    .btn-primary {
        animation: subtleGlow 3s ease-in-out infinite;
        box-shadow: 0 4px 15px rgba(110, 180, 125, 0.4);
    }

    @keyframes subtleGlow {
        0%, 100% {
            box-shadow: 0 4px 15px rgba(110, 180, 125, 0.4);
        }
        50% {
            box-shadow: 0 4px 25px rgba(110, 180, 125, 0.6);
        }
    }

    /* Microanimación en logo */
    .logo-img {
        animation: gentlePulse 4s ease-in-out infinite;
    }

    @keyframes gentlePulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
    }
    
    .about-stats {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .about-stat {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    .about-stat-number {
        font-size: 2rem;
    }
    
    .about-stat-label {
        font-size: 0.85rem;
    }

    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-image {
        height: 120px;
        font-size: 3rem;
    }

    .portfolio-info {
        padding: 1rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}
