:root {
    --primary-color: #FFB800;
    --secondary-color: #E6A600;
    --accent-color: #FFD24D;
    --background-color: #f5f5f5;
    --text-color: #1f2937;
    --light-gray: #f3f4f6;
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --border-radius-lg: 20px;
    --border-radius-pill: 50px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

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

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo h1 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Mejoras para el Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 10rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.1)" x="0" y="0" width="100" height="100"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

/* Mejoras para los textos principales */
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero .highlight {
    font-size: 2rem;
    background: rgba(255,255,255,0.2);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(5px);
    margin-top: 1.5rem;
}

.services {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #eaeaea;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #f39c12;
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.service-content i {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 1rem;
}

.service-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .services {
        padding: 2rem 1rem;
    }

    .services h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* Mejoras para h1 y h2 en content-section */
.content-section {
    padding-top: 120px;
    padding-bottom: 4rem;
    background: #f9f9f9;
}

.content-section h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin: 2rem auto;
    width: auto;
    display: block;
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    background: rgba(255, 184, 0, 0.1);
    padding: 1.5rem 2.5rem 0.5rem;
    margin: 0 auto;
    width: auto;
    display: block;
    max-width: 800px;
    border-radius: 10px 10px 0 0;
}

.empresa-description {
    font-size: 1.2rem;
    color: var(--text-color);
    background: rgba(255, 184, 0, 0.1);
    padding: 1.5rem 2.5rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 0 auto 2rem;
    width: auto;
    display: block;
    max-width: 800px;
    border-top: 1px solid rgba(255, 184, 0, 0.2);
    margin-top: 0;
}

/* Mejoras para los botones de navegación */
.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.nav-button:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Estilos para el menú hamburguesa */
.hamburger-menu {
    position: relative;
    z-index: 100;
    margin-left: auto; /* Alinea el menú a la derecha */
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-icon.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.menu-items {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1001;
}

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

.menu-item {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Mejoras para menú móvil */
@media (max-width: 768px) {
    .menu-items {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 100;
        display: none;
    }
    
    .menu-items.active {
        display: flex;
    }
    
    .menu-item {
        margin: 10px 0;
        font-size: 16px;
    }
    
    .hamburger-icon {
        display: flex;
    }
}
 
/* Estilos para las tarjetas de servicio */
.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.service-card:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.service-card:hover i,
.service-card:hover h3 {
    color: white;
}

/* Estilos para el formulario en columnas */
.formulario-contacto {
    max-width: 1400px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px;
    background: linear-gradient(135deg, #f9f9f9 0%, #fff5d6 100%);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,184,0,0.1);
    overflow: hidden; /* Evita que los elementos se salgan */
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group.full-width {
    grid-column: 1 / -1; /* Ocupa todas las columnas disponibles */
}

.formulario-contacto h2 {
    color: #0066cc;
    margin-bottom: 20px;
    text-align: center;
    font-size: 32px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.formulario-contacto h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f39c12, transparent);
}

.form-half {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.form-half:hover {
    box-shadow: 0 8px 20px rgba(255,184,0,0.15);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.formulario-contacto button {
    background: linear-gradient(135deg, #FFB800 0%, #FFA500 100%);
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 80px;
    resize: none;
}

.submit-button {
    grid-column: span 3;
    width: 100%;
    max-width: 300px;
    justify-self: center;
    padding: 0.8rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #FFB800 0%, #FFA500 100%);
}

.g-recaptcha {
    grid-column: span 3;
    justify-self: center;
    margin: 0.5rem 0;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 184, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .formulario-contacto {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .formulario-contacto > div {
        margin-bottom: 15px;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: left center;
    }
    
    .form-group.full-width,
    .g-recaptcha,
    .submit-button {
        grid-column: 1;
    }
    
    .map-container {
        margin: 2rem 1rem;
        height: 300px;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 250px;
    }
    
    .map-container iframe {
        height: 250px;
    }
}

/* Ajuste responsive para formularios */
@media (max-width: 768px) {
    .thank-you-container {
        margin: 6rem 1rem 2rem;
        padding: 2rem;
    }

    .thank-you-container h1 {
        font-size: 2rem;
    }

    .thank-you-container p {
        font-size: 1.1rem;
    }

    .formulario-contacto {
        margin: 1rem;
        padding: 1.5rem;
    }

    .nav-buttons {
        flex-direction: column;
    }
    
    .nav-button {
        width: 100%;
        text-align: center;
    }
}

/* Estilos para servicios empresariales */
.servicios-empresas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.servicio-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.servicio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    background-color: var(--primary-color);
}

.servicio-item:hover i,
.servicio-item:hover h3 {
    color: white;
}

.servicio-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.servicio-item h3 {
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0;
    transition: color 0.3s ease;
}

.empresa-description {
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 1rem 0 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
        /* Ajustes para el navbar */
        .navbar {
            padding: 0.5rem 3%;
        }
    
        .logo-img {
            width: 40px;
            height: 40px;
        }
    
        .logo h1 {
            font-size: 1.5rem;
        }
    
        /* Ajustes para los títulos principales */
        .content-section h1 {
            font-size: 1.8rem;
            padding: 1rem 1.5rem;
            margin: 0.5rem auto 1rem;
        }
    
        .content-section h2 {
            font-size: 1.4rem;
            padding: 1rem 1.5rem 0.5rem;
        }
    
        .empresa-description {
            font-size: 1rem;
            padding: 0.5rem 1.5rem 1rem;
        }
    
        /* Ajustes para el grid de servicios */
        .servicios-empresas-grid {
            grid-template-columns: 1fr;
            padding: 0 1rem;
            gap: 1rem;
        }
    
        .servicio-item {
            min-height: 120px;
            padding: 1.5rem;
        }
    
        /* Ajustes para el formulario */
        .form-container {
            padding: 1rem;
        }
    
        .contact-form {
            padding: 1.5rem;
        }
    
        /* Ajustes para la tabla de horario */
        .horario-section {
            margin: 2rem auto;
        }
    
        .horario-table {
            font-size: 0.9rem;
        }
    
        /* Ajustes para el mapa */
        .map-container {
            margin: 1rem auto;
        }
    
        .map-container iframe {
            height: 250px;
        }
    
        /* Ajustes para la descripción del formulario */
        .form-description {
            font-size: 1.1rem;
            padding: 1rem;
            margin: 1rem auto;
        }
    }
    
    /* Ajustes para pantallas muy pequeñas */
    @media (max-width: 480px) {
        .content-section {
            padding-top: 80px;
        }
    
        .content-section h1 {
            font-size: 1.5rem;
        }
    
        .content-section h2 {
            font-size: 1.2rem;
        }
    
        .empresa-description {
            font-size: 0.9rem;
        }
    
        .form-group label {
            font-size: 1rem;
        }
    
        .submit-button {
            font-size: 1.1rem;
            padding: 0.8rem 2rem;
        }
    }


/* Mejoras para la tabla de horario */
.horario-section {
    text-align: center;
    margin: 3rem auto;
    max-width: 800px;
}

.horario-section h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.horario-box {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 400px;
    transition: all 0.3s ease;
}

.horario-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.horario-text {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

.horario-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Estilos específicos para el horario en el footer */
.footer-content .horario-section {
    margin-bottom: 4rem;
}

.footer-content .horario-table {
    margin: 0 auto;
}

.horario-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.horario-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #eee;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.horario-table tr:hover td {
    background-color: #f8f9fa;
}

/* Mejoras para las tarjetas de servicio */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
    background-color: var(--primary-color);
}

.service-card:hover .service-content i,
.service-card:hover .service-content h3 {
    color: white;
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.service-content i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0;
    transition: color 0.3s ease;
}

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

.service-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

/* Mejoras para el título de servicios */
.services h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Mejoras para el footer y la información de contacto */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem auto 3rem; /* Ajustado para mejor espaciado */
    max-width: 1000px; /* Reducido para coincidir con el mapa */
    padding: 0 1rem;
}

.contact-info-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,184,0,0.05);
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.contact-info-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: rgba(255,184,0,0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: inline-block;
}

.contact-info-item h4 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info-item p {
    color: #555;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* Mejoras para los formularios */
.form-container {
    background: linear-gradient(135deg, var(--light-gray), #fff5d6);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    margin-top: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,184,0,0.1);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.1rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: var(--transition);
    resize: none;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255,184,0,0.15);
    outline: none;
    background-color: white;
}

.form-group:hover label {
    color: var(--primary-color);
}

.form-half {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.form-half:hover {
    box-shadow: 0 8px 15px rgba(255,184,0,0.15);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.form-note {
    font-size: 1.1rem;
    color: #666;
    margin: 1.2rem 0;
    padding: 0.8rem;
    background-color: rgba(255,184,0,0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: var(--border-radius-pill);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.submit-button:hover:before {
    left: 100%;
}

.submit-button:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255,184,0,0.3);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(255,184,0,0.2);
}

/* Estilos responsivos para formularios */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    form[id^="form-"] {
        grid-template-columns: 1fr !important;
        padding: 1.5rem !important;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    input, select, textarea {
        width: 100% !important;
        font-size: 16px !important; /* Previene el zoom en iOS */
        padding: 0.9rem !important;
    }

    .form-group label {
        font-size: 1.1rem;
    }

    button[type="submit"] {
        width: 100% !important;
        max-width: none !important;
        padding: 1rem !important;
        font-size: 1.2rem !important;
    }

    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left center;
    }
    
    .form-container {
        padding: 2rem 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* Estilos para la página de agradecimiento */
.thank-you-container {
    text-align: center;
    padding: 4rem 2rem;
    margin: 8rem auto 4rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 600px;
    position: relative;
}

.thank-you-container i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.thank-you-container h1 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: none;
    box-shadow: none;
    padding: 0;
}

.thank-you-container p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.thank-you-container .return-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.thank-you-container .return-button i {
    font-size: 1.4rem;
    margin: 0;
    animation: none;
}

.thank-you-container .return-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 184, 0, 0.2);
}

.thank-you-container .return-button:hover i {
    transform: translateX(-3px);
    transition: transform 0.3s ease;
}

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

.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.location-section {
    padding: 2rem 0;
    text-align: center;
}

.address-text {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
}

.address-text i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.form-description {
    font-size: 1.4rem;
    color: var(--text-color);
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
    line-height: 1.6;
    padding: 1.5rem;
    background: rgba(255, 184, 0, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Estilos para el carrusel de imágenes */
.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.carousel-content h2 {
    font-size: 2.6rem;
    color: white;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-content p {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.carousel-content .highlight {
    font-size: 2rem;
    background: rgba(255,255,255,0.2);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(5px);
    margin-top: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Ajustes responsive para el carrusel */
@media (max-width: 768px) {
    .carousel-container {
        height: 450px;
        margin-top: 80px;
    }
    
    .carousel-content {
        padding: 1rem;
    }
    
    .carousel-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .carousel-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .carousel-content p {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .carousel-content .highlight {
        font-size: 1.2rem;
        padding: 0.7rem 1.2rem;
        background: rgba(255,255,255,0.5);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
        margin-top: 0.8rem;
    }
    
    .service-content h3 {
        font-size: 1.5rem;
    }
    
    .map-container iframe {
        height: 350px;
    }
    
    .info-boxes {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Ajustes para texto más pequeño en móviles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
    
    .hero .highlight {
        font-size: 1.6rem;
        padding: 1rem 2rem;
    }
    
    .service-content h3 {
        font-size: 1.5rem;
    }
    
    .contact-info-item {
        padding: 1.5rem;
    }
    
    .contact-info-item i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .contact-info-item h4 {
        font-size: 1.2rem;
    }
    
    .contact-info-item p {
        font-size: 1rem;
    }
    
    .contact-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-button i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 350px;
        margin-top: 50px;
    }
    
    .carousel-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }
    
    .carousel-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    .carousel-content p {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .carousel-content .highlight {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        background: rgba(255,255,255,0.6);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    }
    
    .carousel-overlay {
        background: rgba(0, 0, 0, 0.5); /* Fondo más oscuro para mejor contraste */
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .info-box {
        padding: 1.5rem;
    }
    
    .info-box i {
        font-size: 2rem;
    }
    
    .info-box h4 {
        font-size: 1.2rem;
    }
}

/* Estilos para el collage de imágenes */
.image-collage {
    padding: 2rem;
    background: #f9f9f9;
    margin-top: 2rem;
}

.collage-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.collage-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 1.5rem;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.collage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.collage-item:hover img {
    transform: scale(1.1);
}

.collage-item:hover .collage-overlay {
    opacity: 1;
    transform: translateY(0);
}

.collage-overlay h3 {
    font-size: 1.3rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Ajustes responsive para el collage */
@media (max-width: 768px) {
    .collage-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .image-collage {
        padding: 1rem;
    }

    .collage-overlay h3 {
        font-size: 1.1rem;
    }
}

/* Estilos para servicios destacados */
.servicios-destacados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.servicios-destacados-grid .servicio-item {
    min-height: 180px;
}

.servicios-destacados-grid .servicio-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .servicios-destacados-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Iconos específicos para servicios */
.servicio-item .fa-laptop-medical {
    color: #4285F4;
}

.servicio-item .fa-sync-alt {
    color: #34A853;
}

.servicio-item .fa-file-invoice-dollar {
    color: #FBBC05;
}

.servicio-item .fa-print {
    color: #EA4335;
}

.servicio-item .fa-mobile-alt {
    color: #9C27B0;
}

.servicio-item:hover .fa-laptop-medical,
.servicio-item:hover .fa-sync-alt,
.servicio-item:hover .fa-file-invoice-dollar,
.servicio-item:hover .fa-print,
.servicio-item:hover .fa-mobile-alt {
    color: white;
}

/* Estilos específicos para el cuadrado de Presupuesto PC */
.presupuesto-pc i {
    color: #2196F3;
}

.presupuesto-pc:hover {
    background-color: #2196F3;
}

.presupuesto-pc:hover i,
.presupuesto-pc:hover h3 {
    color: white;
}

/* Estilos para los botones de contacto */
.contact-buttons-container {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #f5f5f5;
    color: #333;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-button:hover {
    background-color: #ebebeb;
    transform: translateY(-2px);
}

.whatsapp-button {
    background-color: #e7ffef;
    color: #075e54;
}

.whatsapp-button:hover {
    background-color: #d4f5e2;
}

.whatsapp-button i {
    color: #25D366;
    font-size: 1.2rem;
    margin: 0;
}

.contact-button i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-button span {
    font-size: 18px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-button {
        width: 100%;
        max-width: 300px;
    }

    .thank-you-container {
        margin: 6rem 1rem 2rem;
        padding: 3rem 1.5rem;
    }

    .thank-you-container i {
        font-size: 4rem;
    }

    .thank-you-container h1 {
        font-size: 2rem;
    }

    .thank-you-container p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .thank-you-container {
        margin: 5rem 1rem 2rem;
        padding: 2rem 1rem;
    }

    .thank-you-container i {
        font-size: 3.5rem;
    }

    .thank-you-container h1 {
        font-size: 1.8rem;
    }

    .thank-you-container p {
        font-size: 1rem;
    }

    .thank-you-container .return-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Mejoras para formularios en dispositivos móviles */
/* Mejoras para formularios en móvil */
@media (max-width: 768px) {
    .formulario-contacto {
        padding: 1rem;
        margin: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem;
        font-size: 16px; /* Evita el zoom en iOS */
    }

    .submit-button {
        width: 100%;
        padding: 1rem;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .formulario-contacto {
        padding: 0.8rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.7rem;
    }
}
/* Estilos para campos obligatorios */
.campo-obligatorio {
    color: #e74c3c;
    margin-left: 3px;
}

/* Estilos para validación de formularios */
input:invalid, 
textarea:invalid,
select:invalid {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

input:valid:not(:placeholder-shown), 
textarea:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown) {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.05);
}

/* Mejora para el mensaje de error en campos inválidos */
input:invalid:focus, 
textarea:invalid:focus,
select:invalid:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* Estilos para reCAPTCHA */
.g-recaptcha {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    grid-column: 1 / -1;
    order: 1; /* Asegura que aparezca antes que el botón */
}

/* Para servicio-empresas.html y presupuesto-pc.html */
.formulario-contacto .g-recaptcha {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
    order: 1; /* Asegura que aparezca antes que el botón */
}

.formulario-contacto button[type="submit"] {
    grid-column: 1 / -1;
    order: 2; /* Asegura que aparezca después del reCAPTCHA */
}

/* Ajustes responsivos para reCAPTCHA */
@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
        margin: 1rem auto;
    }
}

/* Animación para campos de formulario */
@keyframes formFieldFocus {
    0% { box-shadow: 0 0 0 0 rgba(255,184,0,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255,184,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,184,0,0); }
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    animation: formFieldFocus 1s ease-in-out;
}

/* Mejoras para la visualización de Google Maps */
.map-section {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 0 1rem;
}

.map-section h3 {
    text-align: center;
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.location-section {
    width: 100%;
    max-width: 1000px; /* Reducido de 1200px */
    margin: 3rem auto 2rem; /* Reducido el margen superior */
    padding: 0 1rem;
}

.location-section h2 {
    text-align: center;
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.location-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.map-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 45%; /* Reducido de 56.25% para hacerlo más pequeño */
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Media queries para el mapa */
@media (max-width: 768px) {
    .map-container {
        padding-bottom: 60%; /* Ajustado para móviles */
    }
}

/* Asegurando que los cuadrados inferiores sean visibles */
/* Estilos para los cuadrados informativos */
.info-boxes,
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.info-box,
.contact-info-item {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,184,0,0.1);
}

.info-box:hover,
.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.info-box i,
.contact-info-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.info-box h4,
.contact-info-item h4 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-box p {
    display: none; /* Ocultar los párrafos debajo de los cuadrados */
}

.contact-info-item p {
    display: block; /* Mostrar los párrafos en los cuadrados de contacto */
    color: #555;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* Estilos para los cuadrados informativos mejorados */
.info-icon-circle {
    background-color: rgba(255, 184, 0, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.info-icon-circle i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.phone-container, .email-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.phone-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.phone-item.whatsapp {
    background-color: #e7ffef;
}

.phone-item i, .email-container i {
    margin-right: 10px;
}

.phone-item.whatsapp i {
    color: #25D366;
}

.email-container {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos mejorados para la página Sobre Nosotros */
.content-section {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.content-section h1 {
    text-align: center;
    color: white;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
    background: var(--primary-color);
    padding: 1.5rem 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.content-section h1:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: white;
    border-radius: 2px;
}

.about-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.about-section {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.about-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.about-section i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: rgba(255,184,0,0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.about-section h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-section p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.values-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 1.5rem;
}

.values-list li {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.values-list li:hover {
    background: rgba(255,184,0,0.05);
    transform: translateX(5px);
}

.values-list li i {
    font-size: 1.2rem;
    color: var(--primary-color);
    background: none;
    width: auto;
    height: auto;
    line-height: normal;
    margin: 0;
}

/* Ajustes responsive mejorados */
/* ... existing code ... */

/* Mejoras para dispositivos móviles */
@media (max-width: 768px) {
    /* Ajustes generales */
    .content-section {
        padding: 0 15px;
    }

    /* Ajustes del header */
    .navbar {
        padding: 10px 15px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    /* Ajustes de títulos */
    h1 {
        font-size: 28px !important;
        padding: 15px 30px !important;
    }

    /* Ajustes de formularios */
    .formulario-contacto {
        padding: 15px;
        gap: 10px;
    }

    .formulario-contacto input,
    .formulario-contacto textarea,
    .formulario-contacto select {
        font-size: 16px;
        padding: 10px;
    }

    /* Ajustes de botones */
    .contact-button {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    /* Ajustes adicionales para pantallas muy pequeñas */
    .menu-items {
        width: 100%;
        padding: 10px;
    }

    .menu-item {
        padding: 12px;
        font-size: 16px;
    }

    .formulario-contacto h2 {
        font-size: 22px;
    }

    .servicio-instruccion {
        font-size: 14px !important;
        padding: 0 10px;
    }
}

/* ... existing code ... */

/* Estilos responsivos para formularios */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    form[id^="form-"] {
        grid-template-columns: 1fr !important;
        padding: 1.5rem !important;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    input, select, textarea {
        width: 100% !important;
        font-size: 16px !important; /* Previene el zoom en iOS */
        padding: 0.9rem !important;
    }

    .form-group label {
        font-size: 1.1rem;
    }

    button[type="submit"] {
        width: 100% !important;
        max-width: none !important;
        padding: 1rem !important;
        font-size: 1.2rem !important;
    }

    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left center;
    }
    
    .form-container {
        padding: 2rem 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* Estilos para la página de agradecimiento */
.thank-you-container {
    text-align: center;
    padding: 4rem 2rem;
    margin: 8rem auto 4rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 600px;
    position: relative;
}

.thank-you-container i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.thank-you-container h1 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: none;
    box-shadow: none;
    padding: 0;
}

.thank-you-container p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.thank-you-container .return-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.thank-you-container .return-button i {
    font-size: 1.4rem;
    margin: 0;
    animation: none;
}

.thank-you-container .return-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 184, 0, 0.2);
}

.thank-you-container .return-button:hover i {
    transform: translateX(-3px);
    transition: transform 0.3s ease;
}

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

.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.location-section {
    padding: 2rem 0;
    text-align: center;
}

.address-text {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
}

.address-text i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.form-description {
    font-size: 1.4rem;
    color: var(--text-color);
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
    line-height: 1.6;
    padding: 1.5rem;
    background: rgba(255, 184, 0, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Estilos para el carrusel de imágenes */
.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.carousel-content h2 {
    font-size: 2.6rem;
    color: white;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-content p {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.carousel-content .highlight {
    font-size: 2rem;
    background: rgba(255,255,255,0.2);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(5px);
    margin-top: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Ajustes responsive para el carrusel */
@media (max-width: 768px) {
    .carousel-container {
        height: 450px;
        margin-top: 80px;
    }
    
    .carousel-content {
        padding: 1rem;
    }
    
    .carousel-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .carousel-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .carousel-content p {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .carousel-content .highlight {
        font-size: 1.2rem;
        padding: 0.7rem 1.2rem;
        background: rgba(255,255,255,0.5);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
        margin-top: 0.8rem;
    }
    
    .service-content h3 {
        font-size: 1.5rem;
    }
    
    .map-container iframe {
        height: 350px;
    }
    
    .info-boxes {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Ajustes para texto más pequeño en móviles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
    
    .hero .highlight {
        font-size: 1.6rem;
        padding: 1rem 2rem;
    }
    
    .service-content h3 {
        font-size: 1.5rem;
    }
    
    .contact-info-item {
        padding: 1.5rem;
    }
    
    .contact-info-item i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .contact-info-item h4 {
        font-size: 1.2rem;
    }
    
    .contact-info-item p {
        font-size: 1rem;
    }
    
    .contact-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-button i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 350px;
        margin-top: 50px;
    }
    
    .carousel-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }
    
    .carousel-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    .carousel-content p {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .carousel-content .highlight {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        background: rgba(255,255,255,0.6);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    }
    
    .carousel-overlay {
        background: rgba(0, 0, 0, 0.5); /* Fondo más oscuro para mejor contraste */
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .info-box {
        padding: 1.5rem;
    }
    
    .info-box i {
        font-size: 2rem;
    }
    
    .info-box h4 {
        font-size: 1.2rem;
    }
}

/* Estilos para el collage de imágenes */
.image-collage {
    padding: 2rem;
    background: #f9f9f9;
    margin-top: 2rem;
}

.collage-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.collage-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 1.5rem;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.collage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.collage-item:hover img {
    transform: scale(1.1);
}

.collage-item:hover .collage-overlay {
    opacity: 1;
    transform: translateY(0);
}

.collage-overlay h3 {
    font-size: 1.3rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Ajustes responsive para el collage */
@media (max-width: 768px) {
    .collage-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .image-collage {
        padding: 1rem;
    }

    .collage-overlay h3 {
        font-size: 1.1rem;
    }
}

/* Estilos para servicios destacados */
.servicios-destacados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.servicios-destacados-grid .servicio-item {
    min-height: 180px;
}

.servicios-destacados-grid .servicio-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .servicios-destacados-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Iconos específicos para servicios */
.servicio-item .fa-laptop-medical {
    color: #4285F4;
}

.servicio-item .fa-sync-alt {
    color: #34A853;
}

.servicio-item .fa-file-invoice-dollar {
    color: #FBBC05;
}

.servicio-item .fa-print {
    color: #EA4335;
}

.servicio-item .fa-mobile-alt {
    color: #9C27B0;
}

.servicio-item:hover .fa-laptop-medical,
.servicio-item:hover .fa-sync-alt,
.servicio-item:hover .fa-file-invoice-dollar,
.servicio-item:hover .fa-print,
.servicio-item:hover .fa-mobile-alt {
    color: white;
}

/* Estilos específicos para el cuadrado de Presupuesto PC */
.presupuesto-pc i {
    color: #2196F3;
}

.presupuesto-pc:hover {
    background-color: #2196F3;
}

.presupuesto-pc:hover i,
.presupuesto-pc:hover h3 {
    color: white;
}

/* Estilos para los botones de contacto */
.contact-buttons-container {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #f5f5f5;
    color: #333;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-button:hover {
    background-color: #ebebeb;
    transform: translateY(-2px);
}

.whatsapp-button {
    background-color: #e7ffef;
    color: #075e54;
}

.whatsapp-button:hover {
    background-color: #d4f5e2;
}

.whatsapp-button i {
    color: #25D366;
    font-size: 1.2rem;
    margin: 0;
}

.contact-button i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-button span {
    font-size: 18px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-button {
        width: 100%;
        max-width: 300px;
    }

    .thank-you-container {
        margin: 6rem 1rem 2rem;
        padding: 3rem 1.5rem;
    }

    .thank-you-container i {
        font-size: 4rem;
    }

    .thank-you-container h1 {
        font-size: 2rem;
    }

    .thank-you-container p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .thank-you-container {
        margin: 5rem 1rem 2rem;
        padding: 2rem 1rem;
    }

    .thank-you-container i {
        font-size: 3.5rem;
    }

    .thank-you-container h1 {
        font-size: 1.8rem;
    }

    .thank-you-container p {
        font-size: 1rem;
    }

    .thank-you-container .return-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Mejoras para formularios en dispositivos móviles */
@media (max-width: 576px) {
    .formulario-contacto {
        padding: 15px;
        gap: 10px;
    }
    
    .form-half {
        min-width: 100%;
        padding: 10px;
    }
    
    .formulario-contacto input,
    .formulario-contacto textarea,
    .formulario-contacto select {
        font-size: 16px; /* Tamaño de fuente más grande para evitar zoom automático en iOS */
        padding: 12px;
    }
    
    .formulario-contacto label {
        font-size: 14px;
    }
    
    .formulario-contacto button {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Mejoras para secciones en móviles */
@media (max-width: 576px) {
    .ventajas-grid {
        grid-template-columns: 1fr;
    }
    
    .ventaja-item {
        padding: 1rem;
    }
    
    .contact-info-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info-item {
        padding: 1.5rem 1rem;
    }
    
    .contact-info-item i {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Estilos para campos obligatorios */
.campo-obligatorio {
    color: #e74c3c;
    margin-left: 3px;
}

/* Estilos para validación de formularios */
input:invalid, 
textarea:invalid,
select:invalid {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

input:valid:not(:placeholder-shown), 
textarea:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown) {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.05);
}

/* Mejora para el mensaje de error en campos inválidos */
input:invalid:focus, 
textarea:invalid:focus,
select:invalid:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* Estilos para reCAPTCHA */
.g-recaptcha {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    grid-column: 1 / -1;
    order: 1; /* Asegura que aparezca antes que el botón */
}

/* Para servicio-empresas.html y presupuesto-pc.html */
.formulario-contacto .g-recaptcha {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
    order: 1; /* Asegura que aparezca antes que el botón */
}

.formulario-contacto button[type="submit"] {
    grid-column: 1 / -1;
    order: 2; /* Asegura que aparezca después del reCAPTCHA */
}

/* Ajustes responsivos para reCAPTCHA */
@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
        margin: 1rem auto;
    }
}

/* Animación para campos de formulario */
@keyframes formFieldFocus {
    0% { box-shadow: 0 0 0 0 rgba(255,184,0,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255,184,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,184,0,0); }
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    animation: formFieldFocus 1s ease-in-out;
}

/* Mejoras para la visualización de Google Maps */
.map-section {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 0 1rem;
}

.map-section h3 {
    text-align: center;
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.location-section {
    width: 100%;
    max-width: 1000px; /* Reducido de 1200px */
    margin: 3rem auto 2rem; /* Reducido el margen superior */
    padding: 0 1rem;
}

.location-section h2 {
    text-align: center;
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.location-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.map-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 45%; /* Reducido de 56.25% para hacerlo más pequeño */
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Media queries para el mapa */
@media (max-width: 768px) {
    .map-container {
        padding-bottom: 60%; /* Ajustado para móviles */
    }
}

/* Asegurando que los cuadrados inferiores sean visibles */
/* Estilos para los cuadrados informativos */
.info-boxes,
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.info-box,
.contact-info-item {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,184,0,0.1);
}

.info-box:hover,
.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.info-box i,
.contact-info-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.info-box h4,
.contact-info-item h4 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-box p {
    display: none; /* Ocultar los párrafos debajo de los cuadrados */
}

.contact-info-item p {
    display: block; /* Mostrar los párrafos en los cuadrados de contacto */
    color: #555;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* Estilos para los cuadrados informativos mejorados */
.info-icon-circle {
    background-color: rgba(255, 184, 0, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.info-icon-circle i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.phone-container, .email-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.phone-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.phone-item.whatsapp {
    background-color: #e7ffef;
}

.phone-item i, .email-container i {
    margin-right: 10px;
}

.phone-item.whatsapp i {
    color: #25D366;
}

.email-container {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}