/* Reset y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    /* Añadir solo esta línea */
    padding-top: 80px; /* Para compensar el header fixed */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Tipografía */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Botones */
.btn-primary {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #003d82;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #0056b3;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #0056b3;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #0056b3;
    color: white;
}

/* Header */
.main-header {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    color: #0056b3;
}

.logo-text h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #D6336C;
    font-weight: 700;
}

.logo-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Navegación */
.main-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.main-nav .nav-link {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: #0056b3;
}

.main-nav .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0056b3;
}

/* Acciones del Header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    color: #333;
    font-weight: 600;
}

.header-phone:hover {
    color: #0056b3;
}

.btn-cta {
    background: #0056b3;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.btn-cta:hover {
    background: #003d82;
}

/* Menú Móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* Hero Banner - Solución sin modificar diseño */
.hero {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    /* Solo añadir estas 4 líneas */
    position: relative;
    margin-top: -80px;
    padding-top: 160px;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Sección de Servicios */
.services-section {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #0056b3;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-link {
    color: #0056b3;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.service-link:hover {
    text-decoration: underline;
}

/* Sección Sobre Nosotros */
.about-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-features {
    margin-top: 20px;
    list-style: none;
}

.about-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.about-features i {
    color: #0056b3;
    margin-right: 10px;
}

/* Sección de Testimonios */
.testimonials-section {
    padding: 100px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    position: relative;
}

.quote-icon {
    color: #0056b3;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.testimonial-author {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
}

.author-location {
    color: #666;
    font-size: 0.9rem;
}

/* Sección de Contacto */
.contact-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-methods {
    margin-top: 30px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.method-icon {
    font-size: 1.2rem;
    color: #0056b3;
    margin-top: 5px;
}

.method-info h4 {
    margin-bottom: 5px;
}

.method-info a {
    color: #333;
}

.method-info a:hover {
    color: #0056b3;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.main-footer {
    background: #0056b3;
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo i {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-services h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: white;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover,
.footer-services a:hover {
    color: white;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active ul {
        flex-direction: column;
        gap: 15px;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .hero {
        margin-top: -60px;
        padding-top: 140px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
.footer-logo span {
    color: #D6336C; /* Añade esta nueva regla para el footer */
}

.fallback-icon {
    display: none; /* Oculta el icono si hay imagen */
}

.logo-icon img {
    display: block;
}

/* Si falla la imagen, muestra el icono */
.logo-icon img[src=""] {
    display: none;
}

.logo-icon img[src=""] + .fallback-icon {
    display: block;
    font-size: 2rem;
    color: #D6336C;
}