/* Variables globales */
:root {
    --color-white: #ffffff;
    --color-gray-light: #f8f9fa;
    --color-gray: #e9ecef;
    --color-gray-dark: #343a40;
    --color-blue: #1e4b9c;
    --color-blue-light: #3a6bc7;
    --color-blue-dark: #0d2b63;
    --color-yellow: #ffc107;
    --color-yellow-light: #ffda69;
    --color-text: #212529;
    --color-text-light: #6c757d;
    --color-gradient: linear-gradient(135deg, #1e4b9c 0%, #3a6bc7 100%);
    --font-primary: 'Poppins', 'Open Sans', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* Reseteo básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Para compensar el header fijo */
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Mejora la presentación de las imágenes */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:focus {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

/* Utilidades para accesibilidad */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.highlight {
    color: var(--color-yellow);
    font-weight: 700;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    letter-spacing: 1px;
    width: 100%;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--color-gradient);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(30, 75, 156, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 75, 156, 0.5);
    outline: none;
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 12px 26px;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.cta-button {
    background: var(--color-gradient);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: var(--border-radius);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 75, 156, 0.3);
}

.cta-button:hover::after {
    width: 0 !important;
}

/* Botón WhatsApp en hero */
.btn-whatsapp {
    background-color: #25d366;
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 1.2em;
}

/* Header */
#header {
    background-color: var(--color-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 12px 0;
    overflow-x: hidden; /* Evitar desbordamiento horizontal */
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 60px;
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    margin-right: 20px;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    font-weight: 600;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-blue);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.menu a:hover::after,
.menu a:focus::after,
.menu a.active::after {
    width: 100%;
}

.toggle-mode {
    margin-left: 25px;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-gray-light);
}

.toggle-mode:hover,
.toggle-mode:focus {
    color: var(--color-yellow);
    background-color: var(--color-gray);
}

.menu-toggle {
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
    background-color: var(--color-gray-light);
    border-radius: 5px;
    display: none;
    z-index: 1001; /* Asegurar que esté por encima del menú */
}

/* Hero section */
.hero {
    height: 100vh;
    background: url('../img/hero-background.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-white);
    margin-top: 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    margin-top: 60px;
}

.hero-content {
    max-width: 900px;
    padding: 20px;
    width: 100%;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    color: var(--color-white);
}

.hero h2 {
    font-size: 1.9rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 1);
    line-height: 1.5;
    max-width: 100%;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 30px;
    width: 100%;
    justify-content: flex-start;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-yellow);
}

.stat-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Secciones comunes */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    font-weight: 700;
    color: var(--color-text);
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--color-gradient);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Servicios */
.services {
    background-color: var(--color-gray-light);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom right, var(--color-white) 0%, var(--color-white) 50%, transparent 50%);
}

.services::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top right, var(--color-white) 0%, var(--color-white) 50%, transparent 50%);
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top: 4px solid var(--color-blue);
}

.service-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--color-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    border-radius: 50%;
    box-shadow: 0 15px 25px rgba(30, 75, 156, 0.2);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    margin-bottom: 25px;
    color: var(--color-text-light);
    font-size: 1rem;
}

.service-link {
    color: var(--color-blue);
    font-weight: 600;
    position: relative;
    padding-bottom: 3px;
    font-size: 0.95rem;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-blue);
    transition: var(--transition);
}

.service-link:hover::after,
.service-link:focus::after {
    width: 100%;
}

.service-link i {
    font-size: 12px;
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(3px);
}

/* CTA Section */
.cta-section {
    background: var(--color-gradient);
    color: white;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, 30%);
}

.cta-section::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-30%, -30%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sobre nosotros */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 60px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--color-blue);
    font-size: 1.2rem;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.value {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--border-radius);
    background-color: var(--color-gray-light);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.value:hover {
    background: var(--color-gradient);
    color: var(--color-white);
    transform: translateY(-5px);
}

.value i {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--color-blue);
    transition: var(--transition);
}

.value:hover i {
    color: var(--color-white);
}

.value h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Testimonials */
.testimonials {
    background-color: var(--color-gray-light);
    position: relative;
}

.testimonials::before,
.testimonials::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
}

.testimonials::before {
    top: 0;
    background: linear-gradient(to bottom right, var(--color-white) 0%, var(--color-white) 50%, transparent 50%);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
    padding: 10px;
}

.testimonial-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-text {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-gray);
}

.testimonial-text i {
    font-size: 30px;
    color: var(--color-blue);
    margin-bottom: 10px;
    opacity: 0.3;
}

.testimonial-text p {
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

.testimonial-author h4 {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stars {
    color: #FFD700;
    font-size: 0.9rem;
}

/* Contacto */
.contact {
    background-color: var(--color-white);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.contact-form {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-blue);
}

.service-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.service-option {
    position: relative;
}

.service-option input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.service-option label {
    display: block;
    padding: 12px;
    text-align: center;
    background-color: var(--color-gray-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    font-weight: 500;
}

.service-option input[type="radio"]:checked + label {
    background-color: var(--color-blue);
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius);
    background-color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-text);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(30, 75, 156, 0.1);
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 15px;
    text-align: center;
}

.form-disclaimer a {
    color: var(--color-blue);
    text-decoration: underline;
}

.error-message {
    color: #ff3333;
    font-size: 14px;
    margin-top: 5px;
}

.contact-card {
    background: var(--color-gradient);
    height: 100%;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    color: white;
    box-shadow: 0 15px 30px rgba(30, 75, 156, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.contact-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-yellow);
}

.contact-info {
    position: relative;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 24px;
    color: var(--color-yellow);
    margin-right: 15px;
}

.info-item p {
    line-height: 1.5;
}

.info-item a {
    color: white;
}

.info-item a:hover {
    color: var(--color-yellow);
}

.social-media {
    display: flex;
    margin-top: 30px;
    gap: 15px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-media a:hover,
.social-media a:focus {
    background-color: var(--color-white);
    color: var(--color-blue);
    transform: translateY(-5px);
    outline: none;
}

/* Footer */
footer {
    background-color: var(--color-gray-dark);
    color: var(--color-white);
    padding: 70px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 20px;
}

.footer-logo .tagline {
    color: var(--color-gray);
    font-size: 1rem;
    max-width: 250px;
    font-style: italic;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--color-yellow);
    bottom: 0;
    left: 0;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 15px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: #ced4da;
    transition: var(--transition);
    display: inline-block;
}

.footer-links ul li a:hover,
.footer-links ul li a:focus,
.footer-services ul li a:hover,
.footer-services ul li a:focus {
    color: var(--color-yellow);
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #ced4da;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--color-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #ced4da;
}

.footer-bottom .fa-heart {
    color: #e25555;
    margin: 0 3px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #ced4da;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--color-yellow);
}

/* Botón WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn:hover,
.whatsapp-btn:focus {
    transform: scale(1.1);
    outline: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: var(--color-white);
    color: var(--color-text);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.4rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        margin-top: 30px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        background-color: var(--color-white);
        box-shadow: var(--shadow);
        padding: 40px 0;
        text-align: center;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto; /* Permitir scroll vertical si es necesario */
        margin-right: 0; /* Eliminar margen que podría causar problemas */
    }

    .menu.active {
        left: 0;
    }

    .menu li {
        margin: 20px 0;
        width: 100%; /* Asegurar que los elementos ocupen todo el ancho */
    }
    
    .menu li a {
        font-size: 18px;
        padding: 10px 0; /* Aumentar área de toque */
        display: inline-block; /* Mejorar interacción táctil */
        width: auto; /* Evitar que el enlace se extienda demasiado */
    }
    
    nav {
        align-items: center;
        justify-content: flex-end; /* Alinear el botón de menú a la derecha */
        width: auto; /* Evitar que ocupe demasiado espacio */
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: 0; /* Eliminar margen que podría causar problemas */
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: space-between;
    }
    
    section {
        padding: 70px 0;
    }
    
    .service-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #header .container {
        padding: 0 15px; /* Reducir padding en pantallas muy pequeñas */
    }
    
    .logo img {
        max-height: 50px; /* Reducir tamaño del logo en móviles pequeños */
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 100px 0 50px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .contact-form, 
    .contact-card {
        padding: 25px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Ajustar botón flotante de WhatsApp en móviles pequeños */
    .whatsapp-btn {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Ocultar tooltip en pantallas muy pequeñas */
    }
}
