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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    background: #000; /* Black background for the menu */
    color: #fff;
    padding: 1rem;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
}

.hero-text {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    color: white;
    text-align: center;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.section {
    padding: 4rem 2rem;
    text-align: center;
}

.section h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: 2.5em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Sombra en el texto */
    margin-bottom: 2rem;
    color: #333;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 2rem;
}

.service img {
    width: 60%; /* Smaller image size */
    height: auto;
    margin-bottom: 1rem;
    border: 5px solid #ccc;
}

.service h3 {
    margin-top: 0.5rem;
}

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

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: #3498db;
}

/* Estilos adicionales para la sección de proyectos */
#proyectos {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 2rem;
}

#proyectos h2 {
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
}

#proyectos h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Mejorar el modal de imágenes */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #3498db;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact {
    background: #f4f4f4;
    padding: 3rem;
}

footer {
    background: #333;
    color: #ffffff;
    text-align: center;
    padding-top: 3rem;
    
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .gallery img {
        height: 150px;
    }

    .service-container {
        grid-template-columns: 1fr; /* One column on smaller screens */
    }

    .service img {
        width: 80%; /* Adjust image size for smaller screens */
    }
}

.justified {
    text-align: justify;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.centered-text {
    text-align: center;
    margin: 0 auto;
    width: 80%;
    padding: 20px;
}

/* Media Queries for responsiveness */
@media (max-width: 600px) {
    /* Adjust general body padding and text */
    body {
        padding: 10px;
    }

    /* Center text in smaller screens and adjust font size */
    .centered-text, .justified {
        text-align: center;
        font-size: 1em;
        margin: 0 auto;
        padding: 10px;
        width: 90%;
    }

    /* Reduce header and nav menu size */
    header {
        padding: 0.5rem;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    /* Adjust hero section for mobile */
    .hero {
        height: 50vh;
        background-size: cover;
        background-position: center;
    }

    .hero-text {
        top: 40%;
        padding: 1rem;
        font-size: 1rem;
    }

    /* Services section adjustments */
    .service-container {
        grid-template-columns: 1fr; /* One column for services on mobile */
    }

    /* Gallery images smaller */
    .gallery {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 0.5rem;
    }

    .gallery img {
        height: 180px;
    }

    /* Contact section adjustments */
    .contact {
        padding: 2rem 1rem;
    }
}

.service h3 {
    margin-bottom: 10px;
    text-align: center;
}

.centered-justified-text {
    text-align: justify;
    margin: 0 auto;
    width: 80%;
    padding: 20px;
}

/* Botón de scroll hacia arriba modernizado */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    display: none;
    z-index: 1000;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.scroll-to-top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.5);
}

.scroll-to-top::before {
    content: '↑';
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

/* Animación de pulso para llamar la atención */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(52, 152, 219, 0.6), 0 0 0 8px rgba(52, 152, 219, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
    }
}

.scroll-to-top.pulse {
    animation: pulse 2s infinite;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
    
    .scroll-to-top::before {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 14px;
    }
    
    .scroll-to-top::before {
        font-size: 14px;
    }
}

/* Estilos llamativos para la sección 'Quiénes Somos' */
#quienes-somos {
    background-image: linear-gradient(to right, #ff7e5f, #feb47b); /* Degradado llamativo */
    padding: 50px 20px;
    color: white;
    text-align: center;
}

#quienes-somos h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Sombra en el texto */
}

#quienes-somos p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Sombra ligera en los párrafos */
}

/* Añadir bordes y sombras para resaltar más */
.centered-justified-text {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Estilos serios para la sección 'Quiénes Somos' */
#quienes-somos {
    background-image: linear-gradient(to right, #2c3e50, #4ca1af); /* Degradado serio en tonos azul y gris */
    padding: 100px 50px;
    color: white;
    text-align: center;
    margin-bottom: 100px;
}

#quienes-somos h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: 3em;
    margin-bottom: 50px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Sombra en el texto */
}

#quienes-somos p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Sombra ligera en los párrafos */
}

/* Añadir bordes y sombras para resaltar más */
.centered-justified-text {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Hacer que el menú sea fijo */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    color: white;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Ajustar el tamaño del menú cuando se hace scroll */
header.shrink {
    padding: 0.5rem;
    background-color: #222;
}

/* Estilo del logo */
header .logo h1 {
    font-size: 2rem;
    transition: font-size 0.3s ease;
}

header.shrink .logo h1 {
    font-size: 1.5rem;
}

/* Ajustar el menú de navegación */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: font-size 0.3s ease;
}

header.shrink nav ul li a {
    font-size: 1rem;
}

/* Asegurarse de que el contenido principal no se superponga con el header */
body {
    padding-top: 80px; /* Ajustar este valor para evitar que el contenido se superponga con el menú */
}

/* Menú transparente en la parte superior */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    color: black;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Cambiar a fondo negro y texto blanco al hacer scroll */
header.shrink {
    background-color: #222;
    color: white;
}

/* Cambiar el color de los enlaces del menú según el estado */
header nav ul li a {
    color: black;
    transition: color 0.3s ease;
}

header.shrink nav ul li a {
    color: white;
}

/* Estilo del logo */
header .logo h1 {
    font-size: 2rem;
    transition: font-size 0.3s ease;
}

header.shrink .logo h1 {
    font-size: 1.5rem;
}

/* Asegurar que el contenido no se superponga con el header */
body {
    padding-top: 80px;
}

/* Menú transparente en la parte superior de la página */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent; /* Fondo transparente */
    color: black; /* Texto negro por defecto */
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Cambiar a fondo negro y texto blanco al hacer scroll */
header.shrink {
    background-color: #000; /* Fondo negro */
    color: white; /* Texto blanco */
}

/* Estilos de los enlaces */
header nav ul li a {
    color: black; /* Texto negro cuando es transparente */
    transition: color 0.3s ease;
}

header.shrink nav ul li a {
    color: white; /* Texto blanco cuando se hace scroll */
}

/* Estilo del logo */
header .logo h1 {
    font-size: 2rem;
    transition: font-size 0.3s ease;
}

header.shrink .logo h1 {
    font-size: 1.5rem;
}

/* Ajustar el espacio para que el contenido no se superponga */
body {
    padding-top: 80px;
}

/* Menú transparente al inicio */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    color: black; /* Texto negro al inicio */
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Cambiar a fondo negro y texto blanco al hacer scroll */
header.shrink {
    background-color: #000; /* Fondo negro al hacer scroll */
    color: white; /* Texto blanco al hacer scroll */
}

/* Cambiar color de los enlaces del menú */
header nav ul li a {
    color: black; /* Texto negro con fondo transparente */
    transition: color 0.3s ease;
}

header.shrink nav ul li a {
    color: white; /* Texto blanco con fondo negro */
}

/* Estilo del logo */
header .logo h1 {
    font-size: 2rem;
    transition: font-size 0.3s ease;
}

header.shrink .logo h1 {
    font-size: 1.5rem;
}

/* Asegurar que el contenido no se superponga con el header */
body {
    padding-top: 80px;
}

/* Eliminar margen superior para la imagen de fondo principal */
#inicio {
    margin-top: 0;
    padding-top: 0;
}

/* Asegurar que la imagen de fondo cubra la pantalla completamente */
#inicio {
    margin: 0;
    padding: 0;
    background-size: cover; /* La imagen cubre toda la pantalla */
    background-position: center; /* Centrar la imagen */
    background-repeat: no-repeat; /* No repetir la imagen */
    height: 100vh; /* Asegurar que cubra el 100% de la pantalla */
}

/* Asegurar que la imagen de fondo esté justo debajo del menú */
#inicio {
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    position: relative;
    z-index: -1; /* Permitir que el menú se superponga a la imagen */
}

/* Asegurar que el menú se superponga a la imagen */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Eliminar márgenes y hacer que la imagen de fondo esté completamente debajo del menú */
#inicio {
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* Asegurar que el menú esté encima de la imagen */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent; /* Menú transparente */
    transition: background-color 0.3s ease;
}

header.shrink {
    background-color: #000; /* Fondo negro al hacer scroll */
}

body {
    margin: 0;
    padding: 0;
}

/* Añadir sombra al texto del menú para que resalte */
header nav ul li a {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Sombra al texto */
}

header.shrink nav ul li a {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Sombra al texto al hacer scroll */
}

/* Cambiar el color del texto del menú a un gris oscuro */
header nav ul li a {
    color: #333333; /* Gris oscuro */
}

header.shrink nav ul li a {
    color: #ffffff; /* Blanco al hacer scroll */
}

/* Cambiar el color del texto del menú a un gris claro */
header nav ul li a {
    color: #cccccc; /* Gris claro */
}

header.shrink nav ul li a {
    color: #ffffff; /* Blanco al hacer scroll */
}

/* Cambiar el color del texto del menú a granate */
header nav ul li a {
    color: #800000; /* Color granate */
}

header.shrink nav ul li a {
    color: #ffffff; /* Blanco al hacer scroll */
}

/* Añadir un efecto de ampliación al pasar el ratón sobre los elementos del menú */
header nav ul li a:hover {
    transform: scale(1.1); /* Aumentar el tamaño en un 10% */
    transition: transform 0.3s ease; /* Hacer la transición suave */
}

/* Asegurarse de que el menú amplíe su tamaño al pasar el ratón por encima */
header nav ul li a:hover {
    transform: scale(1.1); /* Aumentar el tamaño en un 10% */
    transition: transform 0.3s ease; /* Suavizar la transición */
}

/* Asegurar que el menú no tenga problemas de superposición */
header nav ul {
    display: flex;
    justify-content: center;
}

header nav ul li {
    margin: 0 1rem;
}

header nav ul li a {
    display: inline-block; /* Asegurar que el efecto se aplique correctamente */
}

/* Sección de contacto principal */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 2rem;
    position: relative;
}

.contact-section h2 {
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
}

.contact-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info-main {
    text-align: center;
}

.contact-info-main h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info-main p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

.contact-item-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.contact-item-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.contact-text h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-text a,
.contact-text span {
    color: #6c757d;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #3498db;
}

.contact-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-button-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.cta-button-secondary {
    background: transparent;
    color: #3498db;
    padding: 12px 30px;
    border: 2px solid #3498db;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button-secondary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Responsive para la sección de contacto */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1rem;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item-main {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .contact-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button-primary,
    .cta-button-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .contact-info-main h3 {
        font-size: 1.5rem;
    }
    
    .contact-item-main {
        padding: 1rem;
    }
}

/* Banner de cookies modernizado */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 0;
    z-index: 10000;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.cookie-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.cookie-banner__content {
    flex: 1;
    min-width: 0;
}

.cookie-banner__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner__text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: #bdc3c7;
}

.cookie-banner__link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.cookie-banner__link:hover {
    color: #5dade2;
    border-bottom-color: #5dade2;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner__button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cookie-banner__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cookie-banner__button:hover::before {
    left: 100%;
}

.cookie-banner__button--primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.cookie-banner__button--primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.cookie-banner__button--secondary {
    background: transparent;
    color: #bdc3c7;
    border: 2px solid rgba(189, 195, 199, 0.3);
}

.cookie-banner__button--secondary:hover {
    background: rgba(189, 195, 199, 0.1);
    color: #ffffff;
    border-color: rgba(189, 195, 199, 0.5);
    transform: translateY(-2px);
}

.cookie-banner__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #bdc3c7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cookie-banner__close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

/* Animaciones de entrada */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-banner.animate-in {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cookie-banner.animate-out {
    animation: slideOutDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive para el banner de cookies */
@media (max-width: 768px) {
    .cookie-banner__container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .cookie-banner__icon {
        align-self: center;
        width: 40px;
        height: 40px;
    }
    
    .cookie-banner__content {
        text-align: center;
    }
    
    .cookie-banner__actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-banner__button {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-banner__close {
        position: static;
        align-self: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner__container {
        padding: 1rem;
    }
    
    .cookie-banner__title {
        font-size: 1.1rem;
    }
    
    .cookie-banner__text {
        font-size: 0.9rem;
    }
    
    .cookie-banner__button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .cookie-banner__actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Footer moderno */
.modern-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    padding: 4rem 0 0;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Sección de marca */
.footer-brand {
    max-width: 400px;
}

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

.footer-logo h3 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Redes sociales */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* Títulos de sección */
.footer-section h4 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 1px;
}

/* Enlaces del footer */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #3498db;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* Información de contacto */
.footer-contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    color: #3498db;
    flex-shrink: 0;
}

.contact-item a,
.contact-item span {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3498db;
}

/* Footer bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #95a5a6;
    margin: 0;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #3498db;
}

.separator {
    color: #7f8c8d;
    font-size: 0.8rem;
}

/* Responsive para el footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modern-footer {
        padding: 3rem 0 0;
    }
    
    .footer-content {
        padding: 0 0.5rem;
    }
    
    .footer-logo h3 {
        font-size: 1.8rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* Estilos para páginas de servicios */
.service-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-item ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.service-item li {
    margin-bottom: 0.5rem;
    color: #555;
}

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

.roof-type {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid #3498db;
}

.roof-type h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.cta-section {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    background: white;
    color: #3498db;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive para páginas de servicios */
@media (max-width: 768px) {
    .service-details,
    .roof-types {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Ajuste para páginas de servicios */
#edificios,
#mantenimiento,
#reformas,
#tejados {
    padding-top: 120px;
}

@media (max-width: 768px) {
    #edificios,
    #mantenimiento,
    #reformas,
    #tejados {
        padding-top: 100px;
    }
}

/* Botones con fondo para el menú principal */
header nav ul li a {
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    line-height: 1;
}

header.shrink nav ul li a {
    background-color: #111111;
    color: #ffffff;
    border-color: #333333;
}

header nav ul li a:hover,
header nav ul li a:focus {
    background-color: #000000;
    color: #ffffff;
}

header nav ul li a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
