/* Compass Cleaning - Main Stylesheet */

/* Tailwind CSS Import */
@import url('https://cdn.tailwindcss.com');

/* Custom CSS Variables - Design System */
:root {
    --primary-color: #059669;    /* Verde principal - Acciones primarias */
    --secondary-color: #047857;  /* Verde oscuro - Hover states */
    --accent-color: #10b981;     /* Verde claro - Acentos */
    --light-green: #6ee7b3;      /* Hero highlights */
    --light-bg: #ecfdf5;         /* Fondos de tarjetas */
    --text-dark: #111827;        /* Texto principal */
    --text-gray: #6b7280;        /* Texto secundario */
    --light-gray: #d1d5db;       /* Bordes de inputs */
    --lighter-gray: #f3f4f6;     /* Bordes sutiles */
    --bg-light: #f9fafb;         /* Fondos de secciones */
    --border-light: #f3f4f6;     /* Bordes sutiles */
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow on all elements */
* {
    max-width: 100%;
}

/* Ensure all containers respect viewport width */
.container, .services-container, .form-container, .form-image-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: white;
    overflow-x: hidden;
    font-size: 1rem; /* Base mobile */
}

/* Typography Scale - Mobile First */
@media (min-width: 640px) {
    body {
        font-size: 1.125rem; /* 18px */
    }
}

@media (min-width: 768px) {
    body {
        font-size: 1.25rem; /* 20px */
    }
}

/* Header Styles */
.header {
    background-color: white;
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

@media (min-width: 768px) {
    .header-content {
        padding: 0.5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header-content {
        padding: 0.5rem 2rem;
    }
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Logo Base Styles */
.logo {
    height: 4.5rem;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-mobile-size {
    width: 150px;
    height: 100px;
    margin: -20px;
    object-fit: contain;
}

/* Mobile Logo - Show by default */
.logo-mobile {
    display: block;
}

.logo-desktop {
    display: none;
}

/* Desktop Logo - Show from tablet up */
@media (min-width: 768px) {
    .logo-mobile {
        display: none;
    }
    
    .logo-desktop {
        display: block;
        height: 8rem;
    }
}

@media (min-width: 1024px) {
    .logo-desktop {
        height: 9rem;
    }
}

@media (min-width: 1280px) {
    .logo-desktop {
        height: 10rem;
    }
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: none;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .nav-menu {
        gap: 3rem;
    }
}

.nav-link {
    color: var(--text-gray);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-button {
    display: none;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

@media (min-width: 1024px) {
    .cta-button {
        display: inline-block;
    }
}

@media (min-width: 1280px) {
    .cta-button {
        padding: 0.75rem 2rem;
    }
}

.cta-button:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

@media (min-width: 1024px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu-button:hover {
    color: var(--primary-color);
}

.menu-icon {
    width: 1.75rem;
    height: 1.75rem;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    background-color: white;
    border-top: 1px solid var(--border-light);
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: var(--text-gray);
    font-weight: 500;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.mobile-cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-cta-button:hover {
    background-color: var(--secondary-color);
}

/* Fixed Call Button */
.call-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}

.call-button a {
    background-color: var(--primary-color);
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 640px) {
    .call-button a {
        width: 3rem;
        height: 3rem;
    }
}

.call-button a:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.call-icon {
    width: 1.75rem;
    height: 1.75rem;
}

@media (max-width: 640px) {
    .call-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: auto;
    width: 100%;
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #111827 100%);
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    margin-top: 0;

}

@media (min-width: 768px) {
    .hero {
        height: 100vh;
        padding-top: 6rem;
        margin-top:50px;
    }
}

@media (min-width: 1024px) {
    .hero {
        margin-top:50px;
        padding-top: 7rem;
    }
}

@media (width: 1280px) {
    .hero {
        margin-top:60px;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    opacity: 0.1;
}

@media (min-width: 768px) {
    .hero-decoration {
        width: 20rem;
        height: 20rem;
    }
}

.hero-decoration.primary {
    background-color: var(--primary-color);
    top: -7rem;
    right: -7rem;
}

@media (min-width: 768px) {
    .hero-decoration.primary {
        top: -10rem;
        right: -10rem;
    }
}

.hero-decoration.accent {
    background-color: var(--accent-color);
    bottom: -7rem;
    left: -7rem;
}

@media (min-width: 768px) {
    .hero-decoration.accent {
        bottom: -10rem;
        left: -10rem;
    }
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-slide.active {
    opacity: 0.2;
}

.hero-slide:not(.active) {
    opacity: 0;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 2rem 0;
}

.hero-text {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-text {
        padding: 0 2rem;
    }
}

.hero-title {
    font-size: 2rem;
    font-weight: 300;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2.75rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-title .highlight {
    color: var(--light-green);
    font-weight: 400;
}

.hero-description {
    font-size: 1rem;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
        margin-bottom: 3.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
}

.hero-button {
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

@media (min-width: 768px) {
    .hero-button {
        padding: 1rem 2.5rem;
        font-size: 1.125rem;
    }
}

.hero-button.primary {
    text-align: center;
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-button.primary:hover {
    background-color: var(--light-bg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
}

.hero-button.secondary {
    color: white;
    border: 2px solid white;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-button.secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.hero-button.secondary .arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.hero-button.secondary:hover .arrow {
    transform: translateX(4px);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

@media (min-width: 768px) {
    .slider-indicators {
        bottom: 2rem;
    }
}

.indicator {
    width: 0.75rem;
    height: 0.75rem;
    background-color: white;
    border-radius: 50%;
    transition: opacity 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
}

@media (min-width: 768px) {
    .indicator {
        width: 1rem;
        height: 1rem;
    }
}

.indicator.active {
    opacity: 1;
}

.indicator:not(.active) {
    opacity: 0.5;
}

/* Services Section */
.services {
    padding: 3rem 0;
    background-color: white;
}

@media (min-width: 768px) {
    .services {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .services {
        padding: 6rem 0;
    }
}

.services-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .services-container {
        padding: 0 2rem;
    }
}

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

@media (min-width: 768px) {
    .services-header {
        margin-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .services-header {
        margin-bottom: 5rem;
    }
}

.services-title {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .services-title {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 768px) {
    .services-title {
        font-size: 2.75rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .services-title {
        font-size: 3rem;
    }
}

.services-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .services-subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .services-subtitle {
        font-size: 1.25rem;
    }
}

.services-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.service-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
    padding: 2rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border-light);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .service-card {
        padding: 2.25rem;
        border-radius: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .service-card {
        padding: 2.5rem;
    }
}

.service-card:hover {
    border-color: rgba(5, 150, 105, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .service-icon {
        width: 4.5rem;
        height: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .service-icon {
        width: 5rem;
        height: 5rem;
        margin-bottom: 2rem;
    }
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

@media (min-width: 768px) {
    .service-icon svg {
        width: 2.25rem;
        height: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .service-icon svg {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.service-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .service-title {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1024px) {
    .service-title {
        font-size: 1.5rem;
    }
}

.service-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .service-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

.service-image-container {
    margin-top: 1.5rem;
}

.service-image {
    width: 100%;
    height: 9rem;
    object-fit: cover;
    border-radius: 1rem;
}

@media (min-width: 768px) {
    .service-image {
        height: 10rem;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

@media (min-width: 768px) {
    .testimonials {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .testimonials {
        padding: 6rem 0;
    }
}

.testimonials-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .testimonials-container {
        padding: 0 2rem;
    }
}

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

@media (min-width: 768px) {
    .testimonials-header {
        margin-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .testimonials-header {
        margin-bottom: 5rem;
    }
}

.testimonials-title {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .testimonials-title {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 768px) {
    .testimonials-title {
        font-size: 2.75rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .testimonials-title {
        font-size: 3rem;
    }
}

.testimonials-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
}

@media (min-width: 640px) {
    .testimonials-subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .testimonials-subtitle {
        font-size: 1.25rem;
    }
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 2.5rem;
        border-radius: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        padding: 3rem;
    }
}

.testimonial-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    opacity: 0.05;
}

@media (min-width: 768px) {
    .testimonial-bg {
        width: 10rem;
        height: 10rem;
    }
}

.testimonial-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 50%;
}

.testimonial-stars {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .testimonial-stars {
        margin-bottom: 1.5rem;
    }
}

.star {
    width: 1.25rem;
    height: 1.25rem;
    color: #fbbf24;
}

@media (min-width: 768px) {
    .star {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.testimonial-text {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-style: italic;
}

@media (min-width: 640px) {
    .testimonial-text {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .testimonial-text {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
}

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

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .author-avatar {
        width: 4rem;
        height: 4rem;
        border-radius: 1rem;
        margin-right: 1.5rem;
        font-size: 1.25rem;
    }
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .author-info h4 {
        font-size: 1.25rem;
    }
}

.author-info p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .author-info p {
        font-size: 1rem;
    }
}

/* Footer */
.footer {
    background-color: #111827;
    color: white;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .footer {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .footer {
        padding: 5rem 0;
    }
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .footer-container {
        padding: 0 2rem;
    }
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-brand-header {
        margin-bottom: 2rem;
    }
}

/* Footer Logo Base Styles */
.footer-logo {
    height: 4.5rem;
    width: auto;
}

/* Footer Mobile Logo - Show by default */
.footer-logo-mobile {
    display: block;
    height: 100px;
    margin: -20px;
}

.footer-logo-desktop {
    display: none;
}

/* Footer Desktop Logo - Show from tablet up */
@media (min-width: 768px) {
    .footer-logo-mobile {
        display: none;
    }
    
    .footer-logo-desktop {
        display: block;
        height: 6rem;
    }
}

@media (min-width: 1024px) {
    .footer-logo-desktop {
        height: 9rem;
        margin: -40px;
    }
}

@media (min-width: 1280px) {
    .footer-logo-desktop {
        height: 11rem;
        margin: -40px;
    }
}

.footer-description {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    max-width: 32rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .footer-description {
        margin-bottom: 2rem;
        font-size: 1rem;
    }
}

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

@media (min-width: 768px) {
    .social-links {
        gap: 1.5rem;
    }
}

.social-link {
    color: #9ca3af;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: white;
}

.social-icon {
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 768px) {
    .social-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
}

.footer-section {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-section {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .footer-links {
        gap: 1rem;
    }
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .footer-link {
        font-size: 1rem;
    }
}

.footer-link:hover {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--primary-color);
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .contact-icon {
        width: 1.25rem;
        height: 1.25rem;
        margin-right: 1rem;
    }
}

.contact-text {
    color: #d1d5db;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .contact-text {
        font-size: 1rem;
    }
}

.footer-divider {
    border-top: 1px solid #374151;
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-divider {
        margin-top: 3.5rem;
        padding-top: 2rem;
    }
}

@media (min-width: 1024px) {
    .footer-divider {
        margin-top: 4rem;
    }
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-copyright {
        font-size: 1rem;
    }
}

/* Skip Link for Accessibility */
.skip-link {
    display: none;
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Form Styles - Design System */
.form-container {
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-light);
    //box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    resize: vertical;
    background: white;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1.0625rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Contact Card Styles */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.contact-card-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem;
    border-radius: 1rem;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.contact-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-card-text {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Service Area Grid */
.service-area-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .service-area-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        background: white;
        padding: 20px;
        border-radius: 12px;
    }
}

@media (min-width: 1024px) {
    .service-area-grid {
        align-items: center;
        justify-content: center;
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-area-item {
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-area-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.service-area-item span {
    font-weight: 500;
    color: var(--text-dark);
}

/* CTA Section Styles */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cta-section h3 {
    font-size: 1.875rem;
    font-weight: 300;
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Values Grid */
.values-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.value-card-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem;
    border-radius: 1rem;
    flex-shrink: 0;
}

.value-card-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.value-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.value-card-text {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Print styles */
@media print {
    .header,
    .call-button,
    .hero-buttons,
    .mobile-menu-button,
    .mobile-menu {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: 50vh;
    }
}

/* Form Image Wrapper Styles - Desktop Layout */
.form-image-wrapper {
    display: block; /* Default mobile behavior */
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Prevent overflow */
}

.form-image-container {
    display: none; /* Hidden by default on mobile */
}

/* Mobile-specific fixes for overflow */
@media (max-width: 1279px) {
    .form-image-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .form-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
}

/* Desktop Layout - Show form and image side by side */
@media (min-width: 1280px) {
    .form-image-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: stretch; /* Cambiar a stretch para igualar alturas */
    }
    
    .form-image-container {
        display: flex;
        align-items: stretch; /* Estirar para igualar altura del formulario */
        justify-content: center;
        background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
        padding: 2.5rem; /* Mismo padding que el formulario */
        border-radius: 1.5rem; /* Mismo border-radius que el formulario */
        border: 1px solid var(--border-light); /* Mismo border que el formulario */
        //box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); /* Misma sombra que el formulario */
    }
    
    .form-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top; /* Ajustar posición para evitar recorte superior */
        border-radius: 0.75rem; /* Border radius interno más pequeño */
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .form-image:hover {
        transform: scale(1.02); /* Cambiar a scale para mejor efecto */
    }
}

/* Ensure mobile layout remains unchanged */
@media (max-width: 1279px) {
    .form-image-wrapper {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .form-image-container {
        display: none;
    }
}

/* Form Notification Styles */
.form-notification {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-notification.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-notification.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Button States */
.form-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Loading State */
.form-button.loading {
    position: relative;
    pointer-events: none;
}

/* Additional mobile overflow fixes */
@media (max-width: 768px) {
    .services-container {
        padding: 0 1rem; /* Reduce padding on mobile */
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .form-container {
        padding: 1.5rem; /* Reduce padding on mobile */
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix any inline styles that might cause overflow */
    .form-image-wrapper > div {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

