/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2a4365;
    --secondary-color: #ca1906; /* Cambiado de #c05621 a #ca1906 */
    --accent-color: #38b2ac;
    --light-color: #f7fafc;
    --dark-color: #1a202c;
    --gray-color: #718096;
    --light-gray: #e2e8f0;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Tipografía */
h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.highlight {
    color: var(--secondary-color);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #a81404; /* Color más oscuro para hover */
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.65);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    height: 80px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 50px; /* Altura de la navbar menos padding */
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?ixlib=rb-4.0.3&auto=format&fit=crop&w=1770&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    margin-top: 80px; /* Ajustado para la nueva altura de navbar */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.3;
}

.highlight-bg {
    background-color: rgba(255, 255, 255, 0.65); /* Fondo blanco transparente */
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: none; /*1px solid rgba(255, 255, 255, 0.2);*/
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent);
}

/* Secciones generales */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

/* Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: white;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-info {
    padding: 25px;
}

.project-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--light-gray);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.service-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Sobre Nosotros */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-image {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 100%;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Hace el logo blanco */
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Estilos del Carrusel de Proyectos */
.projects-carousel-container {
    margin-bottom: 60px;
    width: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background-color: var(--light-color);
}

.carousel {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); /* Transición más lenta y suave */
    height: 500px;
}

.carousel.slow-transition {
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide:hover img {
    transform: scale(1.03);
}

.carousel-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide:hover .carousel-slide-overlay {
    transform: translateY(0);
}

.carousel-slide-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: var(--font-secondary);
}

.carousel-slide-description {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 80%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(202, 25, 6, 0.3);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.carousel-indicator.active {
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.carousel-indicator:hover {
    transform: scale(1.3);
    background-color: var(--secondary-color);
}

.carousel-info {
    margin-top: 30px;
    padding: 25px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
}

.carousel-project-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.carousel-project-description {
    color: var(--gray-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.carousel-project-details {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.carousel-project-tag {
    display: inline-block;
    padding: 6px 15px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-project-year {
    display: inline-block;
    padding: 6px 15px;
    background-color: var(--light-gray);
    color: var(--dark-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.carousel-project-location,
.carousel-project-area {
    display: inline-block;
    padding: 6px 15px;
    background-color: var(--light-gray);
    color: var(--dark-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Skeleton Screen para carrusel */
.carousel-skeleton {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: var(--radius);
    animation: skeletonAppear 0.3s ease;
}

.skeleton-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.skeleton-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.skeleton-title {
    width: 60%;
    height: 28px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin-bottom: 15px;
    border-radius: 4px;
}

.skeleton-description {
    width: 80%;
    height: 16px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-description.short {
    width: 50%;
}

.skeleton-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.skeleton-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.2) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-btn.prev {
    margin-right: auto;
}

.skeleton-btn.next {
    margin-left: auto;
}

.skeleton-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.skeleton-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.2) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-indicator.active {
    background: linear-gradient(90deg, rgba(255,255,255,0.4) 25%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.4) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Skeleton para información del proyecto */
.carousel-info-skeleton {
    margin-top: 30px;
    padding: 25px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid #f0f0f0;
    animation: skeletonAppear 0.3s ease;
}

.skeleton-info-title {
    width: 70%;
    height: 32px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin-bottom: 20px;
    border-radius: 4px;
}

.skeleton-info-description {
    width: 100%;
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-info-description.short {
    width: 80%;
}

.skeleton-info-tags {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.skeleton-tag {
    width: 100px;
    height: 32px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 20px;
}

/* Animación para skeleton */
@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes skeletonAppear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animaciones para scroll y notificaciones */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notificaciones */
.notification {
    max-width: 450px;
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.notification-success {
    background-color: #ca1906 !important; /* Color institucional */
    color: white !important;
    border-left: 4px solid #a81404;
}

.notification-error {
    background-color: #dc3545 !important;
    color: white !important;
    border-left: 4px solid #bd2130;
}

.notification-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
    border-left: 4px solid #e0a800;
}

.notification-info {
    background-color: #17a2b8 !important;
    color: white !important;
    border-left: 4px solid #138496;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 1.4em;
    flex-shrink: 0;
}

.notification-text {
    flex-grow: 1;
}

/* Estado de carga y error para carrusel */
.carousel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    background-color: var(--light-gray);
    border-radius: var(--radius);
}

.carousel-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.carousel-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    background-color: var(--light-gray);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.carousel-error-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.carousel-error-message {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Estilos para los slides */
.carousel-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 5;
}

/* Clases de utilidad */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .logo-img {
        max-width: 180px;
    }
    
    .footer-logo-img {
        max-width: 180px;
    }
    
    .carousel,
    .carousel-skeleton {
        height: 400px;
    }
    
    .skeleton-overlay {
        padding: 20px;
    }
    
    .skeleton-title {
        height: 24px;
    }
    
    .skeleton-description {
        height: 14px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-img {
        max-width: 160px;
    }
    
    .footer-logo-img {
        max-width: 160px;
    }
    
    .carousel,
    .carousel-skeleton {
        height: 350px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-slide-overlay {
        padding: 20px;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.6);
    }
    
    .carousel-slide-title {
        font-size: 1.3rem;
    }
    
    .carousel-slide-description {
        font-size: 0.8rem;
        max-width: 100%;
    }
    
    .carousel-info {
        padding: 20px;
    }
    
    .carousel-project-title {
        font-size: 1.5rem;
    }
    
    .carousel-project-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .skeleton-btn {
        width: 40px;
        height: 40px;
    }
    
    .skeleton-overlay {
        padding: 15px;
    }
    
    .carousel-info-skeleton {
        padding: 20px;
    }
    
    .skeleton-info-title {
        height: 28px;
    }
    
    .skeleton-info-description {
        height: 16px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .navbar {
        height: 70px;
        padding: 10px 0;
    }
    
    .hero {
        margin-top: 70px;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .logo-img {
        max-width: 140px;
    }
    
    .footer-logo-img {
        max-width: 140px;
    }
    
    .nav-menu {
        top: 70px;
    }
    
    .projects-carousel-container {
        margin-bottom: 40px;
    }
    
    .carousel,
    .carousel-skeleton {
        height: 300px;
    }
    
    .carousel-info {
        padding: 15px;
    }
    
    .carousel-project-title {
        font-size: 1.2rem;
    }
    
    .carousel-project-tag,
    .carousel-project-year,
    .carousel-project-location,
    .carousel-project-area {
        padding: 4px 12px;
        font-size: 0.75rem;
    }
    
    .carousel-slide-number {
        top: 10px;
        right: 10px;
        padding: 4px 12px;
        font-size: 0.8rem;
    }
    
    .skeleton-title {
        height: 20px;
    }
    
    .skeleton-description {
        height: 12px;
    }
    
    .skeleton-btn {
        width: 35px;
        height: 35px;
    }
    
    .skeleton-indicator {
        width: 10px;
        height: 10px;
    }
    
    .carousel-info-skeleton {
        padding: 15px;
    }
    
    .skeleton-info-title {
        height: 24px;
    }
    
    .skeleton-info-description {
        height: 14px;
    }
    
    .skeleton-info-tags {
        flex-direction: column;
        gap: 10px;
    }
    
    .skeleton-tag {
        width: 80px;
        height: 28px;
    }
    
    .notification {
        max-width: calc(100% - 40px);
        padding: 16px 20px !important;
        top: 10px;
        right: 20px;
    }
}

/* Soporte para pantallas muy pequeñas */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .logo-img {
        max-width: 120px;
    }
    
    .footer-logo-img {
        max-width: 120px;
    }
    
    .carousel-project-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}