:root {
    --color-primary: #0A2540;
    /* Azul Marino Profundo - Confianza */
    --color-secondary: #0056D2;
    /* Azul más vibrante para enlaces/detalles */
    --color-success: #25D366;
    /* Verde WhatsApp - Acción */
    --color-success-hover: #1EBE57;
    --color-bg-light: #F5F7FA;
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-md: 8px;
    --radius-full: 50px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger delays for grids */
.services-grid>*:nth-child(1) {
    animation-delay: 0.1s;
}

.services-grid>*:nth-child(2) {
    animation-delay: 0.2s;
}

.services-grid>*:nth-child(3) {
    animation-delay: 0.3s;
}

.services-grid>*:nth-child(4) {
    animation-delay: 0.4s;
}

.benefits-grid>*:nth-child(1) {
    animation-delay: 0.1s;
}

.benefits-grid>*:nth-child(2) {
    animation-delay: 0.2s;
}

.benefits-grid>*:nth-child(3) {
    animation-delay: 0.3s;
}

.benefits-grid>*:nth-child(4) {
    animation-delay: 0.4s;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.hidden-mobile {
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-whatsapp {
    background-color: var(--color-success);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    font-size: 1rem;
}

.btn-whatsapp:hover {
    background-color: var(--color-success-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-success);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Top Bar */
.top-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(10, 37, 64, 0.7), rgba(10, 37, 64, 0.6)), url('assets/images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    /* Changed to column to stack nav and content */
    color: var(--color-white);
}

.hero-nav {
    width: 100%;
    padding-top: 1rem;
    display: flex;
    justify-content: flex-start;
    /* Logo to the left */
}

.logo {
    height: 120px;
    /* Reduced from potential huge size */
    width: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background-color: rgba(255, 255, 255, 0.9);
    /* Slight background to make it pop */
    padding: 5px;
}

.hero .container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero-content {
    max-width: 800px;
    margin: auto;
    /* Center vertically and horizontally */
    text-align: center;
    padding: 2rem;
    padding-top: 0;
    /* Adjust since logo is above */
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #E0E0E0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
}

/* Sections General */
.section {
    padding: 4rem 0;
    /* Reduced from 5rem */
}

.brands-section {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    /* Reduced from 3rem */
    font-weight: 800;
    line-height: 1.2;
    /* Tighter line height */
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: 1 column */
    gap: 2rem;
    max-width: 900px;
    /* Limit width to keep cards from getting too wide in 2x2 */
    margin: 0 auto;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Desktop: 2 columns (2x2) */
    }
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(10, 37, 64, 0.05);
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    font-size: 2rem;
    color: var(--color-success);
    margin-top: 5px;
}

.benefit-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

/* Brands Grid */
.brands-section {
    padding: 2rem 0;
}

.brands-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 look (mostly) */
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .brands-container {
        grid-template-columns: repeat(3, 1fr);
        /* 3 cols on desktop */
    }
}

.brand-card {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    /* Fixed height for consistency */
    transition: transform 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.brand-logo {
    max-width: 80%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;
    margin-top: 2rem;
    position: relative;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.step-circle {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step h4 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #ddd;
    margin-top: 25px;
    /* Half of circle height */
    display: none;
    /* Hidden on mobile usually, block on desktop if space permits */
}

@media (min-width: 768px) {
    .step-line {
        display: block;
    }
}

/* CTA Section */
.cta-section {
    background-color: var(--color-primary);
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: #051525;
    color: #ccc;
    padding: 4rem 0 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .step-line {
        display: none;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body ul {
    margin: 1rem 0 1rem 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: none;
    width: 100%;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0d3155;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}