/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 60px; /* Espacio para el header fijo */
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Estilos del Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    height: 80px;
    width: auto;
}

.logo:hover {
    transform: none;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6600;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ff6600;
}

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

/* Estilos del menú móvil */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

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

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

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #fff;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .nav.active {
        right: 0;
    }

    .menu {
        flex-direction: column;
        gap: 15px;
    }

    .menu li {
        width: 100%;
    }

    .menu li a {
        display: block;
        padding: 10px 0;
        font-size: 1.2rem;
    }

    /* Asegurar que el header tenga la altura correcta en móvil */
    .header {
        height: auto;
        min-height: 70px;
    }

    .header-container {
        padding: 15px 20px;
    }

    body {
        padding-top: 50px;
    }
    
    .hero {
        height: calc(100vh - 50px);
        min-height: 350px;
    }
    
    .hero-contenido {
        padding-top: 70px;
    }
    
    .hero h1 {
        font-size: 2rem;
        padding: 0 15px;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 50px;
    }
    
    .hero {
        height: calc(100vh - 50px);
        min-height: 300px;
    }
    
    .hero-contenido {
        padding-top: 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Efecto de scroll en el header */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ajuste del contenido principal para el header fijo */
main {
    margin-top: 90px;
    padding: 40px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

section {
    margin-bottom: 50px;
}

.presentacion {
    background-color: #f4f4f4;
    padding: 30px;
    border-radius: 10px;
}

.secciones-lado-a-lado {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
    background-color: #ffffff;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.quienes-somos,
.historia {
    flex: 1 1 45%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quienes-somos:hover,
.historia:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.quienes-somos::before,
.historia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6600, #ff8533);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quienes-somos:hover::before,
.historia:hover::before {
    transform: scaleX(1);
}

.quienes-somos h2,
.historia h2 {
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.quienes-somos h2::after,
.historia h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #ff6600;
    transition: width 0.3s ease;
}

.quienes-somos:hover h2::after,
.historia:hover h2::after {
    width: 100px;
}

.quienes-somos p,
.historia p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.quienes-somos:hover p,
.historia:hover p {
    opacity: 1;
}

@media (max-width: 768px) {
    .quienes-somos,
    .historia {
        flex: 1 1 100%;
    }
}

.hero {
    position: relative;
    height: 100vh;
    background-image: url("../img/inicio.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-contenido {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    height: 100%;
    min-height: 300px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 1rem;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    font-weight: 300;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #f8f8f8;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 10px;
    margin-top: 40px;
    font-size: 14px;
    position: relative;
    z-index: 10;
    width: 100%;
    clear: both;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    margin: 0 5px;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}
.bienvenida {
    padding: 60px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.bienvenida h1 {
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.bienvenida p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    color: #444;
}

.productos {
    padding: 40px 0;
    background-color: #f9f9f9;
    margin-top: -30px;
}

.contenedor-productos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.contenedor-productos h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.contenedor-productos h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff6600;
}

.carrusel-contenedor {
    position: relative;
    margin: 40px auto;
    max-width: 100%;
    overflow: hidden;
    padding: 0 50px;
}

.carrusel {
    display: flex;
    transition: transform 0.3s ease;
    gap: 15px;
    padding: 10px;
    width: max-content;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.carrusel-btn:hover {
    background: #ff6600;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carrusel-btn.prev {
    left: 5px;
}

.carrusel-btn.next {
    right: 5px;
}

.tarjeta-producto {
    flex: 0 0 220px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 350px;
}

.tarjeta-producto img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background-color: #f5f5f5;
    padding: 0px;
}

.tarjeta-contenido {
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 200px;
}

.tarjeta-producto h3 {
    margin: 0 0 8px;
    color: #333;
    font-size: 1.1em;
}

.tarjeta-producto p {
    margin: 0 0 12px;
    color: #666;
    font-size: 0.85em;
    line-height: 1.4;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.btn-ver-mas {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-size: 0.9em;
}

.btn-ver-mas:hover {
    background-color: #e05500;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .tarjeta-producto {
        flex: 0 0 200px;
        height: 320px;
    }
    
    .tarjeta-contenido {
        padding: 12px;
        height: 170px;
    }
}

.lineas-seleccion {
    text-align: center;
    margin: 30px auto;
    padding: 20px;
    max-width: 800px;
}

.botones-lineas button {
    margin: 5px;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.botones-lineas button:hover {
    background-color: #555;
}

.info-linea {
    margin-top: 20px;
    text-align: left;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .carrusel-btn {
        width: 60px;
        height: 60px;
        font-size: 28px;
        background: rgba(255, 255, 255, 0.95);
    }

    .carrusel-btn.prev {
        left: 0;
    }

    .carrusel-btn.next {
        right: 0;
    }

    .carrusel-contenedor {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .carrusel-btn {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
}

.lineas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lineas-container h1 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    color: #333;
}

.lineas-contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lineas-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.linea-btn {
    padding: 12px 25px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.linea-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.linea-btn.active {
    background-color: #ff6600;
    color: white;
    transform: translateY(-2px);
}

.linea-info {
    display: none;
    animation: fadeIn 0.5s ease;
}

.linea-info.active {
    display: block;
}

.linea-header {
    text-align: center;
    margin-bottom: 40px;
}

.linea-header h2 {
    color: #333;
    margin-bottom: 15px;
}

.linea-descripcion {
    color: #666;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
}

.linea-caracteristicas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.caracteristica {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.caracteristica:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.caracteristica h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.caracteristica ul {
    list-style: none;
    padding: 0;
}

.caracteristica li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #666;
}

.caracteristica li::before {
    content: "✓";
    color: #ff6600;
    position: absolute;
    left: 0;
}

.linea-galeria {
    margin-top: 40px;
}

.linea-galeria h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.galeria-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.galeria-grid img[src*="niza2.png"] {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

.galeria-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .lineas-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .linea-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 25px;
        padding: 0 15px;
    }
    
    .galeria-grid img {
        height: auto;
        min-height: 250px;
        max-height: 400px;
        object-fit: contain;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .galeria-grid {
        gap: 20px;
        padding: 0 10px;
    }
    
    .galeria-grid img {
        min-height: 200px;
        max-height: 350px;
        border-radius: 10px;
    }
}

/* Estilos específicos para galerías con muchas imágenes (como A-40) */
@media (max-width: 768px) {
    .galeria-grid:has(img[src*="A40"]) {
        gap: 30px;
    }
    
    .galeria-grid:has(img[src*="A40"]) img {
        min-height: 280px;
        max-height: 450px;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    }
}

@media (max-width: 480px) {
    .galeria-grid:has(img[src*="A40"]) {
        gap: 25px;
    }
    
    .galeria-grid:has(img[src*="A40"]) img {
        min-height: 220px;
        max-height: 380px;
        border-radius: 12px;
    }
}

/* Estilos para la página de contacto */
.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contacto-container h1 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.contacto-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff6600;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Sección izquierda */
.contacto-izquierda {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Formulario */
.formulario-contacto {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.formulario-contacto h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff6600;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.btn-enviar {
    background-color: #ff6600;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-enviar:hover {
    background-color: #e55c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

/* Mapa */
.mapa-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.mapa-container h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.8rem;
    text-align: center;
}

.mapa {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* CSS mínimo para ocultar */
[hidden]{ display:none !important; }

/* Nuevos estilos para mapa responsive */
.mapa-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  background: #f3f3f3;
}

.mapa-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mapa-enlace {
  margin-top: .5rem;
}

/* Sección derecha */
.contacto-derecha {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Información de contacto */
.info-contacto {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.info-card h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 20px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background-color: #f9f9f9;
    transform: translateX(5px);
}

.info-item i {
    font-size: 24px;
    color: #ff6600;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 102, 0, 0.1);
    border-radius: 50%;
}

.info-item h3 {
    margin-bottom: 5px;
    color: #333;
    font-size: 1.1rem;
}

.info-item p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Redes sociales */
.redes-sociales {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.redes-sociales h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
}

.redes-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.red-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.red-social.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.red-social.whatsapp {
    background: #25D366;
}

.red-social.telefono {
    background: #ff6600;
}

.red-social:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contacto-izquierda,
    .contacto-derecha {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contacto-container {
        padding: 20px;
    }
    
    .formulario-contacto,
    .mapa-container,
    .info-contacto,
    .redes-sociales {
        padding: 30px;
    }
    
    .contacto-container h1 {
        font-size: 2rem;
    }
    
    .formulario-contacto h2,
    .mapa-container h2,
    .info-card h2,
    .redes-sociales h2 {
        font-size: 1.5rem;
    }
    
    .red-social {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .formulario-contacto,
    .mapa-container,
    .info-contacto,
    .redes-sociales {
        padding: 20px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-item i {
        margin-bottom: 10px;
    }
}

/* Estilos para la página de obras */
.obras-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.obras-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* Filtros */
.filtros {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 10px 20px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.filtro-btn:hover {
    background-color: #e0e0e0;
}

.filtro-btn.active {
    background-color: #ff6600;
    color: white;
}

/* Grid de obras */
.obras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.obra-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.obra-imagen {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.obra-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.obra-card:hover .obra-imagen img {
    transform: scale(1.05);
}

.obra-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
}

.obra-overlay h3 {
    margin: 0;
    font-size: 1.2em;
}

.obra-overlay p {
    margin: 5px 0 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.obra-info {
    padding: 20px;
}

.obra-info h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.3em;
}

.obra-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.obra-caracteristicas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.obra-caracteristicas span {
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.obra-caracteristicas i {
    color: #ff6600;
}

/* Media queries */
@media (max-width: 768px) {
    .filtros {
        flex-direction: column;
        align-items: center;
    }
    
    .filtro-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .obras-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para la sección de Otras Soluciones */
.otras-soluciones {
    padding: 60px 20px;
    background-color: #f9f9f9;
    margin-top: -30px;
}

.soluciones-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.soluciones-container h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.soluciones-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff6600;
}

.soluciones-descripcion {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.soluciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.solucion-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.solucion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.solucion-imagen {
    height: 250px;
    overflow: hidden;
}

.solucion-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solucion-imagen img[src*="mamparas"] {
    object-fit: contain !important;
    background-color: #f5f5f5;
    padding: 10px;
}

.solucion-card:hover .solucion-imagen img {
    transform: scale(1.05);
}

.solucion-contenido {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.solucion-contenido h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.solucion-contenido p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.solucion-caracteristicas {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.solucion-caracteristicas li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    margin-bottom: 10px;
}

.solucion-caracteristicas i {
    color: #ff6600;
}

.btn-solucion {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.btn-solucion:hover {
    background-color: #e55c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

@media (max-width: 768px) {
    .soluciones-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .solucion-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .soluciones-container h2 {
        font-size: 2rem;
    }
    
    .soluciones-descripcion {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .otras-soluciones {
        padding: 60px 20px;
    }
    
    .solucion-contenido {
        padding: 20px;
    }
    
    .solucion-imagen {
        height: 200px;
    }
}

.frentes-tipos {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin: 40px 0;
}

.frente-tipo {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.frente-tipo:hover {
    transform: translateY(-5px);
}

.frente-contenido {
    padding: 30px;
}

.frente-contenido h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.frente-contenido h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff6600;
}

.frente-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.frente-imagen {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.frente-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.frente-tipo:hover .frente-imagen img {
    transform: scale(1.05);
}

.frente-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.frente-descripcion {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.frente-caracteristicas {
    list-style: none;
    padding: 0;
}

.frente-caracteristicas li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #666;
    font-size: 1.1em;
}

.frente-caracteristicas li i {
    color: #ff6600;
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1.2em;
}

@media (max-width: 992px) {
    .frente-detalle {
        grid-template-columns: 1fr;
    }
    
    .frente-imagen {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .frentes-tipos {
        gap: 40px;
    }
    
    .frente-contenido {
        padding: 20px;
    }
    
    .frente-contenido h3 {
        font-size: 1.5em;
    }
    
    .frente-descripcion {
        font-size: 1em;
    }
    
    .frente-caracteristicas li {
        font-size: 1em;
    }
}

/* Estilos para el carrusel de frentes */
.carrusel-frente {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
}

.carrusel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carrusel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: scale(1.05);
}

.carrusel-img.active {
    opacity: 1;
    transform: scale(1);
}

.carrusel-img:hover {
    transform: scale(1.02);
}

.carrusel-img.active {
    opacity: 1;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carrusel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carrusel-btn.carrusel-prev {
    left: 10px;
}

.carrusel-btn.carrusel-next {
    right: 10px;
}

.carrusel-btn i {
    transition: transform 0.3s ease;
}

.carrusel-btn:hover i {
    transform: scale(1.2);
}

/* Indicadores del carrusel */
.carrusel-indicadores {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicador:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicador.active {
    background: #ff6600;
    transform: scale(1.1);
}

/* Responsive para el carrusel */
@media (max-width: 768px) {
    .carrusel-frente {
        height: 250px;
    }
    
    .carrusel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .carrusel-frente {
        height: 200px;
    }
    
    .carrusel-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Asegurar que el footer esté siempre visible */
.footer {
    margin-top: auto;
    position: relative;
    z-index: 10;
}

/* Estilos específicos para la página de líneas */
body:has(.lineas-container) .footer {
    position: relative;
    margin-top: 50px;
    clear: both;
    display: block;
}

/* Alternativa para navegadores que no soportan :has() */
.lineas-container + .footer {
    position: relative;
    margin-top: 50px;
    clear: both;
    display: block;
}

/* Forzar visualización del footer en la página de líneas */
.lineas-container ~ .footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    margin-top: 50px !important;
}

/* ===== ESTILOS DE ACCESIBILIDAD ===== */

/* Skip link para navegación por teclado */
.skip-link {
    position: absolute;
    left: -999px;
    top: -999px;
    background: #fff;
    color: #000;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 2px solid #000;
    border-radius: 4px;
    font-weight: 600;
    z-index: 9999;
    transition: all 0.3s ease;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    outline: none;
}

/* Indicadores de foco visibles para enlaces y botones */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

/* Mejorar contraste de foco para elementos interactivos */
.nav-link:focus {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
    background-color: rgba(255, 102, 0, 0.1);
}

.btn-hero:focus,
.btn-solucion:focus,
.btn-enviar:focus {
    outline: 2px solid #000;
    outline-offset: 3px;
    background-color: #fff;
    color: #000;
}

/* Foco para elementos del carrusel */
.carrusel-btn:focus {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
    background-color: rgba(255, 102, 0, 0.2);
}

/* Foco para indicadores del carrusel */
.indicador:focus {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
    background: rgba(255, 102, 0, 0.8);
}

/* Foco para campos del formulario */
.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
    border-color: #ff6600;
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

