/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores de la Marca - Azul como Principal */
    --primary-color: #2271B1;
    --primary-dark: #1A5A8F;
    --primary-light: #3A8BD9;
    --primary-accent: #2E8BC0;
    --secondary-color: #2C2C2C;
    --secondary-dark: #1A1A1A;
    --secondary-light: #404040;
    --accent-yellow: #FFD700;
    --accent-orange: #FF8C00;
    --metal-gray: #708090;
    --steel-blue: #4682B4;
    --gray-light: #F5F5F5;
    --gray: #808080;
    --gray-medium: #999999;
    --gray-dark: #333333;
    --white: #FFFFFF;
    --black: #000000;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 3px solid var(--primary-color);
}

.header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(34, 113, 177, 0.3) 20px,
        rgba(34, 113, 177, 0.3) 22px
    );
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom-width: 2px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-dark);
    line-height: 1;
}

.logo-accent {
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 400;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--gray-dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.5);
}

.btn-secondary {
    background-color: var(--gray-dark);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 68, 68, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 2rem 0;
    animation: fadeInUp 1s ease;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   HIGHLIGHTS SECTION
   ============================================ */
.highlights {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--white) 0%, var(--gray-light) 100%);
    position: relative;
}

.highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-color),
        var(--primary-color) 30px,
        transparent 30px,
        transparent 40px
    );
}

.section-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.highlight-item {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight-icon i {
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(34, 113, 177, 0.3));
}

.highlight-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.highlight-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 5rem 0;
    background-color: var(--gray-light);
    position: relative;
}

.about::before {
    display: none;
}

.about-text strong {
    color: var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image {
    min-height: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: var(--gray);
    font-size: 0.95rem;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--gray-light) 0%, var(--white) 100%);
    position: relative;
}

.products::before {
    display: none;
}

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

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    position: relative;
    z-index: 1;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 0 0 8px 8px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(34, 113, 177, 0.2);
    border-color: var(--primary-color);
}

.product-card:hover::after {
    opacity: 1;
}

.product-image {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(34, 113, 177, 0.1), rgba(58, 139, 217, 0.1));
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(34, 113, 177, 0.2);
    position: relative;
}

.product-image::before {
    display: none;
}

.product-image i {
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(34, 113, 177, 0.3));
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.product-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-features i.fa-check {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.product-card .btn {
    width: 100%;
    text-align: center;
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    padding: 5rem 0;
    background-color: var(--gray-light);
    position: relative;
}

.gallery-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background-color: var(--gray-dark);
}

.gallery-track {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: scale(1.1);
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.gallery-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.gallery-prev,
.gallery-next {
    background: var(--primary-color);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.gallery-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.gallery-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-dots .dot.active {
    background: var(--primary-color);
    width: 14px;
    height: 14px;
    border-color: var(--white);
}

.gallery-dots .dot:hover {
    background: var(--primary-light);
    transform: scale(1.2);
}

.clients {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--white) 0%, var(--gray-light) 100%);
    position: relative;
}

.clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 20%, var(--primary-color) 80%, transparent);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.client-logo {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.client-logo img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: var(--transition);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.client-logo:hover img {
    filter: grayscale(0%);
}

.client-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--gray);
}

.client-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
}

.client-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 5rem 0;
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-details p,
.contact-details a {
    color: var(--gray-dark);
    text-decoration: none;
    line-height: 1.6;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.contact-social a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background-color: var(--gray-light);
    padding: 2.5rem;
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #f44336;
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.form-group button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-map {
    margin-top: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    border-top: 3px solid var(--primary-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(34, 113, 177, 0.3) 20px,
        rgba(34, 113, 177, 0.3) 22px
    );
}

.footer-logo .logo-img {
    height: 60px;
    filter: brightness(0) invert(1);
}

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

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-logo .logo-accent {
    color: var(--primary-color);
}

.footer-logo .logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-top: 0.5rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--primary-color);
    min-width: 20px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content p {
    margin: 0;
}

.footer-credits {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-credits::before {
    content: '•';
    color: rgba(255, 255, 255, 0.3);
    margin-right: 0.5rem;
}

.deltatech-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.deltatech-link::after {
    content: '→';
    font-size: 0.8em;
    transition: var(--transition);
}

.deltatech-link:hover {
    color: var(--primary-color);
    transform: translateX(2px);
}

.deltatech-link:hover::after {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-credits::before {
        display: none;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .gallery-track {
        padding-bottom: 60%; /* Aspect ratio para tablets */
    }
}

@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

    .header {
        padding: 0;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }

    .header-content {
        padding: 1rem 0;
        min-height: 70px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logo-img {
        height: 50px;
        max-width: 160px;
        width: auto;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        gap: 6px;
        z-index: 1001;
        position: relative;
    }

    .menu-toggle span {
        width: 28px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 3px;
        transition: all 0.3s ease;
        display: block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 998;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
        width: 100%;
    }

    .nav-list li {
        border-bottom: 1px solid #e8e8e8;
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 1.5rem 2rem;
        display: block;
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--gray-dark);
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(34, 113, 177, 0.05);
        color: var(--primary-color);
        padding-left: 2.5rem;
    }

    .nav-link:active {
        background-color: rgba(34, 113, 177, 0.1);
    }

    .hero {
        min-height: 75vh;
        margin-top: 70px;
    }

    .hero-background {
        height: 100%;
    }

    .hero-video {
        min-width: 100%;
        min-height: 100%;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.15rem;
        line-height: 1.7;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 16px 32px;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 1.15rem;
        margin-bottom: 3rem;
    }

    p {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-contact {
        align-items: center;
    }
    
    .gallery-track {
        padding-bottom: 75%; /* 4:3 aspect ratio para móviles */
        min-height: 300px;
    }
    
    .gallery-controls {
        bottom: 10px;
        padding: 0.75rem 1rem;
        gap: 1rem;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .gallery-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    .gallery-dots .dot.active {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.875rem 0;
        min-height: 65px;
    }

    .logo-img {
        height: 45px;
        max-width: 140px;
    }

    .menu-toggle {
        width: 45px;
        height: 45px;
    }

    .menu-toggle span {
        width: 26px;
        height: 3px;
    }

    .nav {
        top: 65px;
        max-height: calc(100vh - 65px);
    }

    .nav-link {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }

    .nav-link:hover,
    .nav-link.active {
        padding-left: 2rem;
    }

    .hero {
        min-height: 80vh;
        margin-top: 70px;
    }

    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .hero-buttons .btn {
        padding: 18px 32px;
        font-size: 1.05rem;
    }

    .hero-content {
        padding: 1.5rem 0;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
    
    .gallery-track {
        padding-bottom: 100%; /* 1:1 aspect ratio para pantallas muy pequeñas */
        min-height: 250px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

