:root {
    --primary: #0056b3;
    --primary-dark: #003d80;
    --secondary: #6c757d;
    --dark: #343a40;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --accent: #22a6b3;
    --text-main: #333333;
    --text-muted: #666666;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 78px;
    /* Increased by 30% from 60px */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: url('hero-bg2.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    top: -500px;
    right: -500px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    background: rgba(0, 0, 0, 0.25);
    /* More transparent background */
    backdrop-filter: blur(10px);
    /* Glass effect */
    -webkit-backdrop-filter: blur(10px);
    padding: 3.5rem 2.5rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gray-100);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero h1 span {
    color: #4da3ff;
    /* Lighter blue for better visibility on dark image */
}

.hero p {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

/* Sections */
section {
    padding: 60px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    transition: var(--transition-fast);
    text-align: center;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--secondary);
}

/* Contact Section */
#contacto {
    position: relative;
    background: url('imagen2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0;
    max-width: 100%;
}

.contact-overlay {
    background: rgba(255, 255, 255, 0.85);
    /* Semi-transparent white effect */
    padding: 80px 2rem;
    width: 100%;
    height: 100%;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.info-text h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.info-text p {
    color: var(--secondary);
    font-size: 1.1rem;
}

.contact-form-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #abb8c3;
}

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #abb8c3;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate.visible {
    opacity: 1;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
    animation-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
    animation-delay: 0.6s;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    max-width: 600px;
    width: 90%;
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
}

.modal-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.modal-description {
    color: var(--secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Responsive Customizations */

/* Tablets and small desktops */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0.6rem 1.5rem;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .contact-container {
        gap: 2.5rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    header {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .logo img {
        height: 52px;
    }

    .pc-only {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 80vh;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-content {
        padding: 2.5rem 1.2rem;
        margin: 0 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
        width: 100%;
    }

    section {
        padding: 40px 1.5rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .trust-image {
        text-align: center !important;
        order: -1;
    }

    .trust-image img {
        max-width: 100%;
    }

    .modal-content {
        padding: 2.5rem 1.2rem;
        width: 95%;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-logo img {
        margin: 0 auto 1.5rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .info-icon {
        margin: 0 auto;
    }
}