:root {
    /* Colors */
    --primary-color: #0a2342;
    /* Deep Royal Blue */
    --primary-light: #16427a;
    --accent-color: #ff6b35;
    /* Vibrant Orange */
    --accent-hover: #e85a24;
    --text-dark: #1a1a1a;
    --text-light: #f8f9fa;
    --text-gray: #666666;
    --bg-light: #ffffff;
    --bg-gray: #f4f6f9;
    --success: #28a745;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    scroll-margin-top: 100px;
}

section {
    scroll-margin-top: 100px;
}

/* JS Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}


a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-color), #ff9f43);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.center {
    text-align: center;
}

.badge {
    background-color: rgba(10, 35, 66, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-heading);
    display: inline-block;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Header & Nav */
.header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background-color: rgba(10, 35, 66, 0.95);
    /* Fallback/Initial */
    backdrop-filter: blur(10px);
}

.header.scrolled {
    background-color: rgba(10, 35, 66, 0.95);
    box-shadow: var(--shadow-md);
    height: 70px;
}

.header.transparent {
    background-color: transparent;
    box-shadow: none;
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: 50px;
    /* Ensure square aspect ratio */
    border-radius: 50%;
    object-fit: cover;
    /* or contain better for white background logos if clipped? Cover is safer for circular clip */
    /* Add a small white border or background if needed to separate from dark header */
    background: white;
    padding: 2px;
    /* Optional spacing inside the circle */
}

.logo .highlight {
    color: var(--accent-color);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.btn-contact {
    background-color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--text-light);
    transition: background 0.3s ease;
}

.nav-link.btn-contact::after {
    display: none;
}

.nav-link.btn-contact:hover {
    background-color: var(--accent-hover);
    transform: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: -80px;
    /* Counteract header height */
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.92) 0%, rgba(10, 35, 66, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    padding-top: 80px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text-light);
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    align-items: center;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-menu-btn {
        display: block;
        color: white;
        font-size: 1.5rem;
    }

    /* Simple Hamburger Icon */
    .mobile-menu-btn .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
}

/* Services Section */
.services {
    background-color: var(--bg-light);
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(10, 35, 66, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.icon-box svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-link {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.card-link:hover {
    color: var(--accent-color);
    gap: 12px;
}

/* Features / Why Us */
.features {
    background-color: var(--bg-gray);
    position: relative;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.features-content ul {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.check-icon {
    min-width: 24px;
    height: 24px;
    background-color: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: 3px;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Contact Section */
.contact {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    padding: 30px;
    background-color: var(--bg-gray);
    border-radius: 20px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.info-item p {
    color: var(--text-gray);
}

.info-item a {
    color: var(--accent-color);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-input,
.form-textarea {
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Brands Section */
.brands-section {
    background-color: white;
    padding: 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.brand-item {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    max-width: 140px;
}

.brand-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Enhanced Form Styles */
.form-select {
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    /* Slightly sharper as per screenshot style often is */
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border 0.3s ease;
    width: 100%;
    background-color: white;
    cursor: pointer;
    appearance: none;
    /* Custom arrow can be added if needed, or stick to browser default for now */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Adjust form inputs to match screenshot look (more squared/clean) */
.form-input,
.form-textarea,
.form-select {
    border-radius: 4px;
    /* Matching the 'clean' look */
    border: 1px solid #ccc;
    color: #444;
}

.form-group label {
    display: none;
    /* Screenshot doesn't show labels outside, mostly placeholders. 
                      However for accessibility it's good to keep them visually hidden or inside. 
                      Ill keep them hidden for visual match as per user request 'asi como en la imagen'. */
}

/* Ensure placeholder color is visible enough */
::placeholder {
    color: #999;
    opacity: 1;
}

.contact-form .btn-primary {
    width: 100%;
    border-radius: 4px;
    /* Match inputs */
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px;
}

/* ========================================
   WhatsApp Emphasis Styles
   ======================================== */

/* WhatsApp Brand Color */
:root {
    --whatsapp-color: #25D366;
    --whatsapp-hover: #1EBE5A;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--whatsapp-color);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp:hover {
    background: var(--whatsapp-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@keyframes pulse-whatsapp {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* Primary WhatsApp CTA Button */
.btn-whatsapp {
    background: var(--whatsapp-color) !important;
    color: white !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px !important;
    font-size: 1.1rem !important;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Navbar WhatsApp Link */
.nav-whatsapp {
    background: var(--whatsapp-color) !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-whatsapp::after {
    display: none !important;
}

.nav-whatsapp:hover {
    background: var(--whatsapp-hover) !important;
}

.nav-whatsapp svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Mobile floating button adjustments */
@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .floating-whatsapp .whatsapp-text {
        display: none;
    }

    .floating-whatsapp {
        padding: 15px;
        border-radius: 50%;
    }
}

/* ========================================
   Floating Phone Button
   ======================================== */
.floating-phone {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a2342; /* Primary Dark Blue */
    color: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(10, 35, 66, 0.4);
    transition: all 0.3s ease;
}

.floating-phone:hover {
    background: #16427a; /* Lighter Blue */
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(10, 35, 66, 0.5);
}

.floating-phone svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Mobile adjustments for phone button */
@media (max-width: 768px) {
    .floating-phone {
        bottom: 90px;
        right: 20px;
        padding: 15px;
    }
}

/* ========================================
   Gallery / Trabajos Styles (Merged)
   ======================================== */
.page-header {
    background-color: var(--primary-color);
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    position: relative;
    background: #fff;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-category {
    padding: 15px;
    font-weight: 600;
    text-align: center;
    color: var(--primary-color);
    background: #f8f9fa;
}

/* Views Management */
#home-view, #gallery-view {
    transition: opacity 0.3s ease;
}