* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e3c72;
    --secondary: #2a5298;
    --accent: #ff6b35;
    --accent-light: #ff8555;
    --light: #ffffff;
    --dark: #0f1c3a;
    --gray: #f8f9fa;
    --text-dark: #333333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --gradient-light: linear-gradient(135deg, #2a5298 0%, #3a6bc9 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
    background-color: var(--gray);
    overflow-x: hidden;
}

/* Header Blanco que cambia a Azul */
header {
    background: var(--light);
    color: var(--text-dark);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
    padding: 0.8rem 0;
    background: var(--gradient);
    color: var(--light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled .logo {
    color: var(--light);
}

header.scrolled .nav-links a {
    color: var(--light);
}

header.scrolled .mobile-menu-btn {
    color: var(--light);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: var(--primary);
    transition: color 0.3s;
}

.logo-icon {
    margin-right: 12px;
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
}

/* Hero Section Mejorada */
.hero {
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 82, 152, 0.15) 0%, transparent 50%),
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('https://images.unsplash.com/photo-1513475382585-d06e58bcb0e0?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s 0.2s backwards;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background: var(--accent);
    color: var(--light);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    animation: fadeInUp 1s 0.4s backwards;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-light);
    transition: all 0.5s;
    z-index: -1;
    border-radius: 50px;
}

.cta-button:hover:before {
    width: 100%;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 107, 53, 0.5);
}

/* Services Section con Tarjetas de Vidrio */
.services {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e3c72' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--primary);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 5px;
    background: var(--accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    height: 400px;
}

.service-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--gradient);
    color: var(--light);
    padding: 1.2rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 2;
}

/* Efecto de Vidrio Mejorado */
.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    /* Solo ocupa parte inferior */
    background: rgba(255, 255, 255, 0.85);
    /* Fondo más claro */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.service-card:hover .service-overlay {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-overlay h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.service-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

/* Gallery Section */
.gallery {
    padding: 5rem 2rem;
    background: var(--dark);
    color: var(--light);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s;
    height: 280px;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 2rem;
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.8rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-text:before {
    content: '"';
    font-size: 4rem;
    color: var(--accent);
    position: absolute;
    top: -20px;
    left: -15px;
    opacity: 0.7;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1.5rem;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.author-info h4 {
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.author-info p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Contact Section - Simplificada */
.contact {
    padding: 5rem 2rem;
    background: var(--light);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--light);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-header {
    background: var(--gradient);
    color: var(--light);
    padding: 2.5rem;
    text-align: center;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: all 0.3s;
    border-radius: 10px;
    background: var(--gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: var(--light);
}

.contact-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-item .icon {
    margin-right: 12px;
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-item p {
    font-size: 1.1rem;
    color: #555;
}

.map-container {
    padding: 0 3rem 3rem;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.whatsapp-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    background: #25D366;
    color: white;
    text-align: center;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:hover {
    background: #20b858;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-button i {
    margin-right: 10px;
    font-size: 1.4rem;
}

/* Footer Blanco con Colores Combinados */
footer {
    background: var(--light);
    color: var(--text-dark);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-column h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-column ul li a i {
    margin-right: 8px;
    color: var(--primary);
    width: 20px;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--gray);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #777;
    font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--light);
        flex-direction: column;
        padding: 1.5rem 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        border-top: 3px solid var(--accent);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .contact-info {
        padding: 2rem 1.5rem;
    }

    .map-container {
        padding: 0 1.5rem 2rem;
    }

    .service-categories {
        grid-template-columns: 1fr;
    }

    .service-overlay {
        height: 50%;
        /* Un poco más alto en móviles */
    }
}