/* Generales */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #000; /* Negro para texto principal, fondo, etc. */
    --secondary-color: #B8860B; /* Dorado para detalles */
    --light-color: #f8f8f8; /* Fondo claro para algunas secciones */
    --text-color: #333;
    --white-color: #fff;
    --dark-grey: #222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container, .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container-fluid {
    padding: 0; /* Sin padding horizontal para secciones full-width */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    color: var(--primary-color);
}

p {
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

a:hover {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* 1. Barra Superior (Header) */
.main-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-header .logo img {
    height: 40px; /* Ajusta el tamaño del logo */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--white-color);
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Oculto por defecto en desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--white-color);
    transition: all 0.3s ease-in-out;
}

/* 2. Carrusel de Pantalla Completa (Hero Section) */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh; /* Ocupa la altura completa de la vista */
    overflow: hidden;
    margin-top: 70px; /* Espacio para el header fijo */
}

.carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: var(--white-color);
    text-align: center;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay oscuro para legibilidad */
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.carousel-logo {
    max-width: 450px; /* Ajusta el tamaño del logo en el carrusel */
    margin-bottom: 20px;
}

.carousel-content h1 {
    font-size: 3.5em;
    margin-bottom: 25px;
    color: var(--white-color);
    font-weight: 700;
}

.carousel-content .btn {
    font-size: 1.1em;
    padding: 15px 30px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white-color);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 2em;
    z-index: 3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* 3. Cuadros de Imágenes Rectangulares */
.image-grid-section {
    padding: 60px 0;
    background-color: var(--white-color);
    text-align: center;
}

.image-grid-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.grid-item {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 4px solid var(--secondary-color);
}

.grid-item h3 {
    font-size: 1.5em;
    margin-top: 20px;
    color: var(--primary-color);
}

.grid-item p {
    padding: 0 20px;
    color: #666;
    font-size: 0.95em;
}

/* 4. Sección: Imagen Izquierda y Tarjetas Derecha */
.content-cards-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.content-cards-section .container-fluid {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1400px; /* Para que la imagen ocupe más espacio */
}

.content-left {
    flex: 1; /* Ocupa un tercio */
}

.content-left img {
    width: 100%;
    height: 500px; /* Altura fija para la imagen */
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.content-right {
    flex: 2; /* Ocupa dos tercios */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-right: 20px; /* Espacio a la derecha */
}

.card-item {
    display: flex;
    align-items: flex-start;
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.card-item .icon {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.card-item .text-content h3 {
    font-size: 1.4em;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.card-item .text-content p {
    font-size: 0.95em;
    color: #555;
}

/* 5. Sección: Título y Párrafos Izquierda, Imagen Derecha */
.text-image-right-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.text-image-right-section .container-fluid {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    padding-left: 20px; /* Espacio a la izquierda */
}

.text-content-left {
    flex: 2; /* Ocupa dos tercios */
}

.text-content-left h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.text-content-left p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #444;
}

.text-content-left p strong {
    color: var(--primary-color);
    font-weight: 700;
}

.image-right {
    flex: 1; /* Ocupa un tercio */
}

.image-right img {
    width: 100%;
    height: 500px; /* Altura fija */
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* 6. Sección: Imagen Izquierda, Título y Párrafos Derecha */
.image-text-right-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.image-text-right-section .container-fluid {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    padding-right: 20px; /* Espacio a la derecha */
}

.image-left {
    flex: 1; /* Ocupa un tercio */
}

.image-left img {
    width: 100%;
    height: 500px; /* Altura fija */
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.text-content-right {
    flex: 2; /* Ocupa dos tercios */
}

.text-content-right h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.text-content-right p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #444;
}

.text-content-right p strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* 7. Carrusel de Texto (Franja Dorada) */
.text-carousel-section {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Para ocultar slides fuera de vista */
    height: 120px; /* Altura fija para la franja */
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-carousel-inner {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 100%;
    justify-content: center;
}

.text-slide {
    min-width: 100%; /* Cada slide ocupa el 100% del ancho del contenedor */
    font-size: 2.2em;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    width: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.text-slide.active {
    opacity: 1;
    position: relative; /* Para que ocupe espacio y no se superpongan */
}

.text-carousel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: absolute;
    bottom: 15px;
}

.text-carousel-dot.active {
    background-color: var(--white-color);
}

/* 8. Sección de Portafolio con Filtro */
.portfolio-section {
    padding: 60px 0;
    background-color: var(--white-color);
    text-align: center;
}

.portfolio-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.portfolio-filter {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background-color: var(--light-color);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 280px; /* Altura fija para los cuadros de portafolio */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--white-color);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay h3 {
    color: var(--white-color);
    font-size: 1.8em;
    margin-bottom: 10px;
}

/* 9. Footer General */
.main-footer {
    background-color: var(--dark-grey);
    color: var(--white-color);
    padding: 50px 0 20px;
    font-size: 0.95em;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-left, .footer-middle, .footer-right {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-left .footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-middle h3, .footer-right h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-middle ul {
    list-style: none;
}

.footer-middle ul li {
    margin-bottom: 10px;
}

.footer-middle ul li a,
.footer-right p {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-middle ul li a:hover,
.footer-right p a:hover {
    color: var(--white-color);
}

.footer-right p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px 20px 0;
}

.footer-bottom .copyright p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.social-icons a {
    color: var(--white-color);
    font-size: 1.5em;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/* Media Queries para Responsividad */
@media (max-width: 1024px) {
    .hero-carousel {
        margin-top: 60px; /* Ajuste para tablets */
    }

    .carousel-content h1 {
        font-size: 2.8em;
    }

    .content-cards-section .container-fluid,
    .text-image-right-section .container-fluid,
    .image-text-right-section .container-fluid {
        flex-direction: column;
        text-align: center;
        padding: 0 20px; /* Añadir padding horizontal para tablet */
    }

    .content-left, .image-left, .image-right {
        margin-bottom: 30px;
    }

    .content-left img, .image-left img, .image-right img {
        height: 400px; /* Ajustar altura de imágenes en tablet */
        width: 80%; /* Hacerlas un poco más pequeñas */
        margin: 0 auto; /* Centrar imágenes */
    }

    .content-right {
        grid-template-columns: 1fr; /* Una columna en tablet */
        padding-right: 0;
    }

    .card-item {
        justify-content: center;
        text-align: left;
    }

    .card-item .icon {
        font-size: 2em;
    }

    .text-content-left, .text-content-right {
        padding: 0; /* Quitar padding que se añadió para desktop */
    }

    .text-carousel-section {
        height: 100px;
    }

    .text-slide {
        font-size: 1.8em;
    }

    .portfolio-filter {
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left, .footer-middle, .footer-right {
        margin-bottom: 20px;
        min-width: unset; /* Quitar min-width */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        padding-top: 15px;
    }

    .social-icons {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
    }

    .main-nav {
        display: none; /* Ocultar menú en mobile */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Debajo del header */
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .main-nav.active {
        display: flex; /* Mostrar menú al activar */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .main-nav ul li a {
        font-size: 1.1em;
    }

    .menu-toggle {
        display: flex; /* Mostrar toggle en mobile */
    }

    .hero-carousel {
        margin-top: 60px;
    }

    .carousel-content h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .carousel-content .btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
        padding: 10px;
    }

    .image-grid-section,
    .content-cards-section,
    .text-image-right-section,
    .image-text-right-section,
    .portfolio-section,
    .main-footer {
        padding: 40px 0;
    }

    .image-grid-section h2,
    .portfolio-section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .image-grid {
        grid-template-columns: 1fr; /* Una columna en mobile */
        padding: 0 15px;
    }

    .grid-item {
        margin-bottom: 20px;
    }

    .content-left img, .image-left img, .image-right img {
        height: 300px;
        width: 90%;
    }

    .text-content-left h2, .text-content-right h2 {
        font-size: 2em;
    }

    .text-content-left p, .text-content-right p {
        font-size: 1em;
    }

    .text-carousel-section {
        height: 80px;
        padding: 20px 0;
    }

    .text-slide {
        font-size: 1.5em;
    }

    .text-carousel-dot {
        bottom: 10px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .footer-left p {
        padding: 0 15px;
    }

    .footer-bottom {
        padding-top: 15px;
    }

    .social-icons {
        margin-left: 0;
        margin-top: 15px;
    }

    .social-icons a {
        font-size: 1.3em;
        margin: 0 10px;
    }
}
/* Estilos para la página de proyectos (ejemplo de hero) */
.page-hero {
    width: 100%;
    height: 300px; /* Altura de la imagen hero en páginas internas */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: var(--white-color);
    text-align: center;
    margin-top: 70px; /* Espacio para el header fijo */
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Overlay más claro */
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.page-hero-content h1 {
    font-size: 3em;
    color: var(--white-color);
    margin-bottom: 10px;
}

.page-hero-content p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
}

.content-section {
    padding: 60px 0;
    background-color: var(--white-color);
}


/* Estilos para la Ventana Modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed; /* Posición fija para cubrir toda la pantalla */
    z-index: 1001; /* Z-index alto para estar sobre todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Habilitar scroll si el contenido es grande */
    background-color: rgba(0,0,0,0.7); /* Fondo oscuro semitransparente */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Centrar vertical y horizontalmente con display:flex del padre */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-width: 90%;
    width: 800px; /* Ancho máximo para la modal */
    overflow-y: auto; /* Para permitir scroll dentro del contenido de la modal */
    max-height: 90vh; /* Altura máxima para la modal */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    z-index: 1002; /* Para que esté por encima de todo en la modal */
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
}

.modal-body {
    padding-top: 30px; /* Espacio para el botón de cerrar */
}

/* Carrusel dentro de la Modal */
.modal-carousel {
    position: relative;
    width: 100%;
    height: 400px; /* Altura del carrusel en la modal */
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.modal-carousel-item {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex; /* Para centrar la imagen si es más pequeña */
    justify-content: center;
    align-items: center;
}

.modal-carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Para que la imagen se ajuste sin recortarse */
}

.modal-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white-color);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 5; /* Mayor que las imágenes */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.modal-carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-carousel-control.prev-modal {
    left: 10px;
}

.modal-carousel-control.next-modal {
    right: 10px;
}

/* Detalles del Proyecto en la Modal */
.project-details {
    margin-bottom: 30px;
    text-align: left;
}

.project-details h3 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-details p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.7;
}

/* Sección de Comentarios */
.comments-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: left;
}

.comments-section h4 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.comments-list {
    max-height: 250px; /* Altura máxima para la lista de comentarios */
    overflow-y: auto; /* Scroll para los comentarios */
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.comment-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.comment-item p {
    margin-bottom: 5px;
    color: #333;
}

.comment-item .author-date {
    font-size: 0.85em;
    color: #777;
    text-align: right;
}

.add-comment-form h5 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.add-comment-form form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-color);
}

.add-comment-form form input[type="text"],
.add-comment-form form textarea {
    width: calc(100% - 22px); /* Ajuste para padding/border */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

.add-comment-form form textarea {
    resize: vertical;
}

.add-comment-form form button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.add-comment-form form button:hover {
    background-color: var(--primary-color);
}

/* Responsividad de la Modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        width: auto;
        padding: 15px;
    }

    .modal-carousel {
        height: 250px;
    }

    .modal-carousel-control {
        font-size: 1.2em;
        padding: 8px 12px;
    }

    .project-details h3 {
        font-size: 1.6em;
    }

    .project-details p {
        font-size: 1em;
    }

    .comments-section h4 {
        font-size: 1.5em;
    }

    .comments-list {
        max-height: 200px;
    }

    .add-comment-form h5 {
        font-size: 1.2em;
    }
}
/* NUEVOS ESTILOS */

/* Estilos para la sección "Nosotros" con imagen a la derecha */
.about-us-content-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.about-us-content-section .container-fluid {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    padding-left: 20px; /* Espacio a la izquierda */
    padding-right: 20px; /* Espacio a la derecha */
}

.about-us-content-section .text-content-left {
    flex: 2; /* Ocupa dos tercios */
}

.about-us-content-section .text-content-left h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-us-content-section .text-content-left p,
.about-us-content-section .text-content-left ul {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #444;
}

.about-us-content-section .text-content-left ul {
    list-style: disc;
    margin-left: 25px;
}

.about-us-content-section .text-content-left ul li {
    margin-bottom: 8px;
}

.about-us-content-section .text-content-left p strong,
.about-us-content-section .text-content-left ul li strong {
    color: var(--primary-color);
    font-weight: 700;
}

.about-us-content-section .image-right {
    flex: 1; /* Ocupa un tercio */
}

.about-us-content-section .image-right img {
    width: 100%;
    height: 500px; /* Altura fija */
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Estilos para la sección de Mapa */
.map-section {
    padding: 60px 0;
    background-color: var(--light-color);
    text-align: center;
}

.map-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.map-container {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 (altura/ancho) */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Estilos para la sección de Mensajería */
.messenger-section {
    padding: 60px 0;
    background-color: var(--white-color);
    text-align: center;
}

.messenger-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.messenger-section p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

.messenger-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.messenger-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 15px;
    background-color: var(--light-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--primary-color); /* Color base para el texto del icono */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
}

.messenger-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.messenger-icon i {
    font-size: 3.5em;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.messenger-icon.whatsapp i {
    color: #25D366; /* Color de WhatsApp */
}

.messenger-icon.telegram i {
    color: #0088CC; /* Color de Telegram */
}

.messenger-icon:hover.whatsapp i {
    color: var(--primary-color); /* Cambia a negro al pasar el ratón */
}

.messenger-icon:hover.telegram i {
    color: var(--primary-color); /* Cambia a negro al pasar el ratón */
}

/* Media Queries para Responsividad de las nuevas secciones */
@media (max-width: 1024px) {
    .about-us-content-section .container-fluid {
        flex-direction: column;
        text-align: center;
    }

    .about-us-content-section .image-right {
        margin-bottom: 30px;
    }

    .about-us-content-section .image-right img {
        height: 400px;
        width: 80%;
        margin: 0 auto;
    }

    .about-us-content-section .text-content-left,
    .map-section,
    .messenger-section {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .about-us-content-section .image-right img {
        height: 300px;
        width: 90%;
    }

    .map-section h2,
    .messenger-section h2 {
        font-size: 2em;
    }

    .messenger-icons {
        gap: 20px;
    }

    .messenger-icon {
        width: 100px;
        height: 100px;
    }

    .messenger-icon i {
        font-size: 3em;
    }
}
