:root {
    --primary-color: #252525;
    --secondary-color: #ff0000;
    --accent-color: #ffffff;
    --text-color: #333333;
    --background-color: #f5f5f5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
}

/* Header and Navigation */
header {
    background-color: #252525;
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 64px;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.main-nav .nav-links a {
    color: #fff !important;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
    letter-spacing: 1px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* HERO Moderno */
.hero-section {
    min-height: 90vh;
    background: linear-gradient(120deg, #fafafa 60%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 64px;
}
.hero-content-modern {
    max-width: 900px;
    margin: auto;
    padding: 3rem 1rem;
}

.hero-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-logo {
    height: 2.5rem;
    width: auto;
    max-width: 2.5rem;
}

@media (max-width: 600px) {
    .hero-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero-logo {
        height: 1.8rem;
        max-width: 1.8rem;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: #111;
    margin-bottom: 1rem;
}
.text-red {
    color: var(--secondary-color);
}
.hero-subtitle {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.hero-card {
    background: #fff;
    border: 2px solid #f3f3f3;
    border-radius: 16px;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.04);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: border 0.3s, box-shadow 0.3s, transform 0.2s;
    text-align: center;
}
.hero-card:hover {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 24px 0 rgba(255,0,0,0.08);
    transform: translateY(-4px) scale(1.03);
}
.hero-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
}
.chevron-down {
    margin-top: 2.5rem;
    color: #bbb;
    font-size: 2.2rem;
    animation: bounce 1.5s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Secciones Modernas */
.section-dark {
    background: #fff;
    color: #222;
}
.section-dark h2 {
    color: #222 !important;
}
.section-light {
    background: #f8f8f8;
    color: #222;
}
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    font-weight: bold;
}

/* Servicios Modernos */
.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.service-card-modern {
    background: #222;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.07);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.2s;
    border: 2px solid #eee;
}
.section-dark .service-card-modern {
    background: #181818;
    color: #fff;
    border: 2px solid #222;
}
.service-card-modern:hover {
    box-shadow: 0 8px 32px 0 rgba(255,0,0,0.10);
    transform: translateY(-6px) scale(1.03);
    border-color: var(--secondary-color);
}
.service-card-modern i {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* About Moderno */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}
.about-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.07);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 2px solid #eee;
    color: #222;
}
.section-light .about-card {
    background: #fdfdfd;
}
.about-icon {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.about-card ul {
    margin: 1rem 0 0 0;
    padding: 0;
    list-style: none;
}
.about-card ul li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Contacto Moderno */
.contact-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.contact-card-modern {
    background: #222;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.07);
    padding: 2rem 1.5rem;
    border: 2px solid #eee;
}
.section-dark .contact-card-modern {
    background: #181818;
    color: #fff;
    border: 2px solid #222;
}
.contact-card-modern h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.contact-schedule {
    font-size: 0.95rem;
    color: #888;
    margin-top: 1rem;
}

/* Footer Moderno */
footer {
    background-color: #181818;
    color: #fff;
    padding: 3rem 0 1rem;
    text-align: center;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}
.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #222;
}

/* Responsive */
@media (max-width: 900px) {
    .main-nav {
        padding: 0 1rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .section {
        padding: 3rem 1rem;
    }
}
@media (max-width: 600px) {
    .main-nav {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 0.5rem;
        gap: 0.5rem;
    }
    .logo img {
        height: 38px;
    }
    .hero-title {
        font-size: 1.4rem;
    }
    .hero-content-modern {
        padding: 2rem 0.2rem;
    }
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1518791841217-8f162f1e1131?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--accent-color);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}



.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin: 0 1rem;
    transition: transform 0.3s ease;
}

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

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

.btn:hover {
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.service-card {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Vision & Mission */
.vision-mision {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.vision, .mision {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.contact-card {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

/* Carousel Film Roll */
.carousel-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fafafa;
  padding: 1.2rem 0 0.7rem 0;
}
.carousel-container {
  position: relative;
  width: 95vw;
  max-width: 900px;
  height: 420px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: #eee;
  display: flex;
  align-items: center;
}
.carousel-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.carousel-track img {
  width: 390px;
  height: 400px;
  margin: 0 18px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 10px;
  background: #eee;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
  display: block;
  transition: box-shadow 0.2s;
}
.carousel-track img:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
@media (max-width: 600px) {
  .carousel-container {
    height: 130px;
    max-width: 98vw;
  }
  .carousel-track img {
    width: 200px;
    height: 120px;
    margin: 0 8px;
  }
}

/* Estilos específicos para el carrusel de Clientes */
#carousel-clientes.carousel-container {
  width: 100%; /* Ocupa el ancho completo del contenedor .section */
  max-width: none; /* Elimina cualquier límite de ancho heredado */
  height: 90px; /* Altura reducida (antes 180px) */
}

#carousel-clientes .carousel-track img {
  height: 60px; /* Altura ajustada (antes 120px) */
  width: auto;    /* Ancho automático para mantener proporción */
  max-width: 125px; /* Ancho máximo reducido (antes 250px) */
  object-fit: contain; /* Asegura que toda la imagen sea visible */
  margin: 0 12px; /* Margen horizontal reducido (antes 0 25px) */
  background-color: transparent; /* Fondo transparente si los logos tienen transparencia */
  box-shadow: none; /* Quitar sombra si no se ve bien con logos */
}

@media (max-width: 600px) {
  #carousel-clientes.carousel-container {
    height: 60px; /* Altura reducida para móviles (antes 120px) */
  }
  #carousel-clientes .carousel-track img {
    height: 40px;  /* Altura ajustada para móviles (antes 80px) */
    margin: 0 8px; /* Margen reducido en móviles (antes 0 15px) */
    max-width: 75px; /* Ancho máximo reducido para móviles (antes 150px) */
  }
}

/* Ajustes para el carrusel de Trabajos Realizados para consistencia */
#carousel-trabajos.carousel-container {
  width: 100%; /* Ocupa el ancho completo del contenedor .section */
  max-width: none; /* Elimina el límite anterior de 900px */
  margin-left: 0; /* Ya no es necesario para centrar si es width 100% */
  margin-right: 0; /* Ya no es necesario para centrar si es width 100% */
  background-color: #fff; /* Fondo blanco para coincidir con section-dark */
  /* Se mantienen otras propiedades existentes como height, overflow, border-radius, box-shadow, display:flex, align-items:center */
}

.carousel-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo img {
        height: 40px;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .vision-mision {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Contact Section - Grid Layout for Cards */
.contact-grid-modern {
    display: flex;
    justify-content: space-between; /* Distributes space; cards will take width based on flex:1 */
    gap: 1rem; /* Space between cards */
    padding: 1rem 0; /* Optional vertical padding for the container */
}

.contact-card-modern {
    flex: 1; /* Each card will take an equal share of the available space after gaps */
    /* If cards need to be visually smaller beyond just fitting in a row,
       consider adjusting their internal padding or content font sizes. */
}

/* Responsive adjustments for contact cards */
@media (max-width: 1024px) { /* Tablet and smaller */
    .contact-grid-modern {
        flex-wrap: wrap; /* Allow cards to wrap */
        justify-content: center; /* Center cards when they wrap */
    }
    .contact-card-modern {
        flex-basis: calc(50% - 0.5rem); /* Two cards per row, accounting for half the gap */
        flex-grow: 0; /* Prevent cards from growing disproportionately if a row is not full */
        margin-bottom: 1rem; /* Space below cards when they wrap */
    }
}

@media (max-width: 600px) { /* Mobile */
    .contact-card-modern {
        flex-basis: 100%; /* Each card takes full width */
        margin-bottom: 1rem; /* Space below cards */
    }
}

/* Contact Form Page Styles */
#contact-form-section {
    padding-top: 80px; /* Adjust if header is fixed and overlaps */
    padding-bottom: 3rem;
}

#contact-form-section h2 {
    margin-bottom: 1.5rem;
}

.form-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    color: #555;
}

#contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #222; /* Dark background similar to service-card-modern */
    color: #fff; /* Default text color for the form */
    padding: 2.5rem;
    border-radius: 14px; /* Match service-card-modern */
    border: 2px solid #333; /* Border similar to service-card-modern in dark context */
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1); /* Subtle shadow */
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #eee; /* Light color for labels */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #333; /* Darker background for inputs */
    color: #fff; /* Light text for input content */
    border: 1px solid #555; /* Border for inputs */
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    background-color: #444; /* Slightly lighter on focus */
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,0,0,0.3);
}

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

.btn-submit {
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background-color: transparent; /* No background */
    color: var(--secondary-color); /* Icon color is red */
    padding: 0.25rem; /* Minimal padding for click area */
    border: none;
    border-radius: 4px; /* Slight rounding for the click area */
    font-size: 2.2rem; /* Icon size, similar to service-card-modern i */
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    color: #cc0000; /* Darker red on hover */
    transform: scale(1.15); /* Scale icon more noticeably on hover */
}

.btn-submit:active {
    transform: scale(1.05);
}

/* Ensure footer is pushed down if content is short */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}


