/* ==== BASE STYLES ==== */
:root {
    --primary-color: #50c86f;
    --primary-dark: #3d9c56;
    --primary-light: #e6f4fb;
    --secondary-color: #20bf6b;
    --secondary-dark: #199955;
    --accent-color: #b24ece;
    --accent-color-dark: #9543ac;
    --dark-color: #333333;
    --light-color: #ffffff;
    --gray-color: #f8f9fa;
    --gray-dark: #6c757d;
    --gray-light: #e9ecef;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
    position: relative;
}

.section-subtitle-2 {
    display: inline-block;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
    position: relative;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.3;
}

.section-description {
    font-size: 16px;
    color: var(--gray-dark);
    max-width: 800px;
    margin: 0 auto 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-content{
    text-align: center;
    margin-bottom: 10px;
}

/* ==== BUTTONS ==== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    text-align: center;
    border: none;
}

.btn i {
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-outline:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-light {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* ==== HEADER ==== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-icon {
    height: 50px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 100%;
}

.nav-phone {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* ==== HERO SECTION ==== */
.hero {
    background-image: url('../../img/nagofre-limpieza-portada.webp');
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--light-color);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-tagline {
    font-size: 18px;
    font-weight: 500;
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ==== ABOUT SECTION ==== */
.about {
    padding: 100px 0;
    background-color: var(--light-color);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.feature-text p {
    font-size: 14px;
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Importante: mantiene la imagen dentro del contenedor */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative; /* Necesario para posicionar correctamente la imagen */
}

.about-image img {
    width: 100%;
    height: auto;
    transform: scale(1.1); /* La imagen ya está ligeramente ampliada */
    transition: transform 0.5s ease; /* Transición suave */
}

/* Cuando se pasa el cursor, la imagen se amplía más */
.about-image:hover img {
    transform: scale(1.2); /* Aumenta más la imagen al pasar el cursor */
}


/* ==== SERVICES SECTION ==== */
.services {
    padding: 100px 0;
    background-color: var(--gray-color);
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon-top {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
    padding-right: 70px;
}

.service-content p {
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.service-features {
    margin-bottom: 25px;
}

.service-features li {
    margin-bottom: 8px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li i {
    color: var(--secondary-color);
    font-size: 14px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 15px;
    margin-top: auto;
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ==== PROCESS SECTION ==== */
.process {
    padding: 100px 0;
    background-color: var(--light-color);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 60px;
    right: 60px;
    height: 2px;
    background-color: var(--primary-light);
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 0 15px;
}

.process-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
}

.process-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-color);
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 30px;
    box-shadow: var(--box-shadow);
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.process-step p {
    color: var(--gray-dark);
    font-size: 15px;
}

/* ==== GALLERY SECTION ==== */
.gallery {
    padding: 100px 0;
    background-color: var(--gray-color);
    position: relative;
    overflow: hidden;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    aspect-ratio: 3/2;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(80, 200, 111, 0.8); /* Using primary-color with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-icon {
    color: var(--light-color);
    font-size: 30px;
    transform: scale(0);
    transition: var(--transition);
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-filter {
    padding: 8px 20px;
    background: var(--light-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-filter:hover {
    color: var(--primary-color);
}

.gallery-filter.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Gallery modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.gallery-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 900px;
    max-height: 80vh;
}

.modal-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 24px;
    color: var(--light-color);
    background: none;
    border: none;
    cursor: pointer;
}

.modal-caption {
    color: var(--light-color);
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
}

.modal-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.modal-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--light-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.modal-nav-btn:hover {
    background: var(--primary-color);
}

/* Featured gallery item (for first item) */
.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}


/* ==== CTA SECTION ==== */
/* MARCAS */
.cta-clientes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
.cta-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    color: var(--primary-color);
}
.cta-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 20px auto 30px;
}

.cta-section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

/* Sección de logos */
.cta-logo-section {
    margin-bottom: 60px;
}

.cta-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    grid-auto-flow: row dense;
    justify-content: center;
}

.cta-client-logo {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: var(--transition);
    padding: 15px;
}

.cta-client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ==== CONTACT SECTION ==== */
.contact {
    padding: 100px 0;
    background-color: var(--gray-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-text {
    font-size: 16px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contactForm {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.contactForm h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 137, 214, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-container label {
    font-size: 14px;
    color: var(--gray-dark);
}

/* ==== FOOTER ==== */
footer {
    background-color: #1a1a1a;
    color: var(--light-color);
    padding: 80px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 90px;
    width: auto;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-hours li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.footer-hours li span {
    font-weight: 600;
    color: var(--light-color);
}

.emergency-service {
    margin-top: 20px;
    color: var(--accent-color) !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

/* ==== BACK TO TOP BUTTON & WHATSAPP BUTTON ==== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    text-decoration: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color-dark);
    transform: translateY(-5px);
    color: var(--light-color);
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    font-size: 24px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    background-color: #20bd5c;
    color: var(--light-color);
}
/* ==== RESPONSIVE STYLES ==== */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    /* Gallery responsive */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    /* CTA Logos responsive */
    .cta-logos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    .header-container {
        padding: 0 15px;
    }

    /* Cambios en el header para que aparezca el botón del menú móvil */
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--light-color);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--gray-light);
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.4;
    }

    .hero p {
        font-size: 16px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        padding-right: 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .process-steps::before {
        left: 40px;
        right: 40px;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Gallery responsive */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* CTA Logos responsive */
    .cta-logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta-section-title {
        font-size: 2rem;
    }
    
    .cta-section-subtitle {
        font-size: 1.3rem;
    }
    
    /* Fix for header phone number display */
    .nav-phone {
        display: none;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }

    .header-container {
        padding: 0 15px;
    }

    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        max-width: 300px;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .form-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-top {
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .contactForm {
        padding: 25px;
    }

    .back-to-top, .whatsapp-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Gallery responsive */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-filters {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .gallery-filter {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    /* Modal adjustments */
    .gallery-modal {
        padding: 30px;
    }
    
    .modal-navigation {
        padding: 0 10px;
    }
    
    /* CTA Logos responsive */
    .cta-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .cta-section-title {
        font-size: 1.8rem;
    }
    
    .cta-section-subtitle {
        font-size: 1.2rem;
        margin-bottom: 35px;
    }
    
    .cta-client-logo {
        max-height: 80px;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .logo-icon {
        height: 40px;
    }
    
    .container {
        padding: 0 15px;
    }

    .hero-content {
        text-align: center;
    }
    
    header {
        padding: 8px 0;
    }
    
    .hero-tagline {
        font-size: 14px;
    }
    
    .hero {
        min-height: 500px;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .hero-stats {
        justify-content: center;
    }

    .stat-item {
        align-items: center;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 12px;
    }
    .section-subtitle-2 {
        font-size: 20px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-info {
        padding: 30px 20px;
    }

    .contactForm {
        padding: 30px 20px;
    }
    
    .process-step h3 {
        font-size: 18px;
    }
    
    .footer-col h3 {
        margin-bottom: 15px;
    }

    .footer-logo-img {
        height: 70px; /* Tamaño más adecuado para móvil */
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .back-to-top, 
    .whatsapp-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
        bottom: 15px;
    }
    
    .footer-logo-img {
        height: 80px; /* Reducción controlada para móviles */
    }
    
    /* Gallery responsive */
    .gallery {
        padding: 60px 0;
    }
    
    .gallery-filters {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .gallery-filter {
        width: 80%;
        text-align: center;
    }
    
    /* Modal adjustments */
    .gallery-modal {
        padding: 20px;
    }
    
    .modal-content {
        max-width: 100%;
    }
    
    .modal-navigation {
        display: none; /* Hide navigation arrows on smallest screens */
    }
    
    .modal-close {
        top: -30px;
        right: 0;
    }
    
    /* CTA Logos responsive */
    .cta-logos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-section-title {
        font-size: 1.5rem;
    }
    
    .cta-section-title::after {
        width: 60px;
        margin: 15px auto 20px;
    }
    
    .cta-section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cta-client-logo {
        max-height: 70px;
        padding: 10px;
    }
    
    .cta-clientes-container {
        padding: 40px 15px;
    }
}

/* Añadir para tablets en vertical */
@media (max-width: 480px) {
    /* Ajuste fino de textos */
    .section-title {
        font-size: 22px;
    }
    
    .section-description {
        font-size: 14px;
    }
    
    /* Menú móvil full width */
    nav ul {
        width: 100%;
    }
    
    /* Center process steps */
    .process-step {
        margin: 0 auto 40px;
        text-align: center;
    }
    
    .process-icon {
        margin: 0 auto 20px;
    }
    
    /* Footer columns optimizado */
    .footer-col {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact {
        align-items: center;
    }

    .footer-contact a {
        justify-content: center;
    }

    /* Gallery responsive */
    .gallery-item {
        aspect-ratio: 1/1;
    }
    
    .gallery-filter {
        width: 90%;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* CTA Logos responsive */
    .cta-client-logo {
        max-height: 60px;
    }
}