/* Estilos específicos para páginas internas */
/* Posicionamiento absoluto para el título en la parte inferior izquierda */

/* Altura específica para el hero en páginas internas */
.internal-page .hero {
    height: 700px !important;
}

/* Posicionar el contenido del hero de forma absoluta */
.hero .hero-content {
    position: absolute !important;
    bottom: 60px !important;
    left: 50px !important;
    width: auto !important;
    height: auto !important;
    z-index: 10 !important;
}

/* Asegurar que el texto del hero sea visible */
.hero .hero-content .hero-text {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

/* Estilo directo para el título principal */
.hero .hero-content .hero-text .hero-subtitle-header {
    margin: 0 !important;
    padding: 20px !important;
    text-align: left !important;
    width: auto !important;
    position: relative;
    display: inline-block;
}

/* Overlay negro con transparencia 80% sobre toda la imagen de fondo del hero */
.internal-page .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Asegurar que el contenido del hero esté por encima del overlay */
.internal-page .hero .hero-content {
    z-index: 2 !important;
}

/* Estilo directo para el título 'COMPAÑÍA' */
.hero .hero-content .hero-text .hero-subtitle-header .since-text-header {
    font-size: 5rem !important;
    font-weight: 800 !important;
    color: white !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    line-height: 1 !important;
}

/* Estilos para la sección de Presentación */
.presentacion {
    margin-top: 120px;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}



/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: #ff6b35;
    transform: translateY(-3px);
}

.scroll-to-top.show {
    display: flex;
}

/* Projects Page Styles */
.projects-header {
    padding: 80px 0 60px;
    background: #f8f9fa;
}

.projects-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-subtitle {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.orange-line {
    width: 30px;
    height: 2px;
    background: #ff6b35;
    margin-right: 15px;
}

.work-text {
    font-size: 1rem;
    font-weight: 600;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.projects-main-title {
    font-size: 5rem;
    font-weight: 800;
    color: #000;
    text-align: center;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.projects-showcase {
    padding: 80px 0 120px;
    background: white;
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 60px;
    align-items: start;
}

.project-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-details {
    padding: 40px 0;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.2;
}

.project-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tag {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-separator {
    width: 100%;
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}

.project-info-list {
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.arrow-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.project-link a {
    color: #ff6b35;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link:hover .arrow-icon {
    transform: translate(3px, -3px);
}

.project-link:hover a {
    color: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-main-title {
        font-size: 4rem;
    }
    
    .project-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .projects-main-title {
        font-size: 3rem;
    }
    
    .projects-header {
        padding: 60px 0 40px;
    }
    
    .projects-showcase {
        padding: 60px 0 80px;
    }
    
    .project-grid {
        gap: 60px;
    }
    
    .project-details {
        padding: 20px 0;
    }
    
    .project-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .projects-main-title {
        font-size: 2.2rem;
    }
    
    .project-image {
        height: 300px;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}


.presentacion-content {
    position: relative;
    z-index: 2;
}

.presentacion-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.orange-line {
    width: 30px;
    height: 2px;
    background-color: #ff6b35;
    margin-right: 15px;
}

.vision-text {
    font-size: 1.1rem;
    color: #ff6b35;
    font-weight: 500;
    text-transform: lowercase;
}

.presentacion-title {
    font-size: 5rem;
    color: #000;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    max-width: 900px;
    text-transform: uppercase;
}

.grua-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.grua-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 800px;
    height: 100%;
    opacity: 0.2;
    object-fit: cover;
    object-position: right top;
}

/* Estilos para el grid de presentación */
.presentacion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
    align-items: start;
}

.grid-column-1 {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.grid-column-2 {
    display: flex;
    justify-content: flex-end;
}

/* Estilos para el subtítulo naranja */
.sobre-nosotros-subtitle {
    color: #ff6b35;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

/* Estilos para el título Constructor */
.constructor-title {
    color: #000;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-align: left;    
    margin-bottom: 50px; 
}

/* Estilos para el texto descriptivo */
.descripcion-text {
    color: #666;
    font-size: 1.2rem;
    line-height: 2;
    margin: 0;
    text-align: justify;
    
    margin-bottom: 40px;
}

/* Estilos para las imágenes */
.imagen-presentacion {
    width: 100%;
    overflow: hidden;
}

.presentacion-img-1 {
    width: 611px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.imagen-presentacion-2 {
    width: 100%;
    overflow: hidden;
}

.presentacion-img-2 {
    width: 755px;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .presentacion {
        margin-top: 80px;
        padding: 60px 0;
    }
    
    .presentacion-title {
        font-size: 3rem;
    }
    
    .grua-image {
        max-width: 80%;
        opacity: 0.2;
    }
    
    .presentacion-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .constructor-title {
        font-size: 2rem;
    }
    
    .presentacion-img-1,
    .presentacion-img-2 {
        width: 100%;
        max-width: 100%;
    }
}

/* Project cards transition */
.project-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Pagination Responsive Design */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 25px;
        margin: 40px 0 30px;
        padding: 20px 0;
    }
    
    .pagination {
        order: 2;
        gap: 10px;
    }
    
    .pagination-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .pagination-numbers {
        order: 1;
        gap: 6px;
    }
    
    .page-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        gap: 20px;
        margin: 30px 0 20px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        min-width: 80px;
    }
    
    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

/* ===== SLIDER STYLES ===== */
.project-gallery {
    padding: 150px 0;
    background: white;
}

.slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Slider Dots - Reposicionados fuera del slider */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: #ff6b35;
    border-color: #ff6b35;
    transform: scale(1.3);
}

/* ===== PROJECT SUMMARY STYLES ===== */
.project-summary {
    padding: 0;
    background: white;
}

.project-summary-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-main-title {
    font-size: 3rem;
    font-weight: 800;
    color: #000;
    text-align: left;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.separator-line {
    width: 100%;
    height: 1px;
    background: #ccc;
    margin: 30px 0;
}

.project-tags-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.project-tag {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description-text,
.project-client,
.project-completion {
    font-size: 1.1rem;
    color: #333;
    margin: 30px 0;
    line-height: 1.6;
}

.project-detailed-section {
    margin-top: 80px;
}

.project-detailed-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
    line-height: 1.3;
}

.project-detailed-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
    text-align: justify;
}

.project-detailed-image {
    margin: 40px 0;
    text-align: center;
}

.project-detailed-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== NAVIGATION BUTTONS STYLES ===== */
.project-navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 100px;
    gap: 20px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: transparent;
    border: 2px solid #ff6b35;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    position: relative;
    overflow: hidden;
}

.nav-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.nav-arrow {
    font-size: 1.2rem;
    color: #ff6b35;
    font-weight: bold;
}

.nav-text {
    color: #000;
}

.nav-btn-left {
    justify-content: flex-start;
}

.nav-btn-right {
    justify-content: flex-end;
}

/* Responsive Design for Slider and Project Summary */
@media (max-width: 1024px) {
    .slider {
        height: 500px;
    }
    
    .project-main-title {
        font-size: 2.5rem;
    }
    
    .project-detailed-title {
        font-size: 1.8rem;
    }
    
    .project-navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .project-gallery {
        padding: 100px 0;
    }
    
    .slider {
        height: 400px;
    }
    
    .slider-container {
        margin: 0 20px;
        border-radius: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .project-summary-container {
        padding: 0 15px;
    }
    
    .project-main-title {
        font-size: 2rem;
    }
    
    .project-detailed-title {
        font-size: 1.5rem;
    }
    
    .project-tags-container {
        gap: 10px;
    }
    
    .project-tag {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .nav-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 300px;
    }
    
    .slider-container {
        margin: 0 15px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
         height: 8px;
     }
 }

/* ===== PROJECT DESCRIPTION STYLES ===== */
.project-description {
    padding: 80px 0;
    background: white;
}

.project-description .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-description h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    text-align: center;
    line-height: 1.2;
}

.description-content {
    max-width: 900px;
    margin: 0 auto;
}

.description-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff6b35;
    margin: 40px 0 20px 0;
    border-left: 4px solid #ff6b35;
    padding-left: 20px;
    line-height: 1.3;
}

.description-content h3:first-child {
    margin-top: 0;
}

.description-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
    text-align: justify;
}

.description-content p strong {
    color: #333;
    font-weight: 600;
}

.description-content ul {
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
}

.description-content ul li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    text-align: justify;
}

.description-content ul li::before {
    content: "•";
    color: #ff6b35;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.description-content ul li strong {
    color: #333;
    font-weight: 600;
}

.project-image {
    margin-top: 60px;
    text-align: center;
}

.project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Project Description */
@media (max-width: 768px) {
    .project-description {
        padding: 60px 0;
    }
    
    .project-description h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .description-content h3 {
        font-size: 1.3rem;
        margin: 30px 0 15px 0;
        padding-left: 15px;
    }
    
    .description-content p,
    .description-content ul li {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .description-content ul li {
        padding-left: 25px;
    }
    
    .project-image {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .project-description {
        padding: 40px 0;
    }
    
    .project-description .container {
        padding: 0 15px;
    }
    
    .project-description h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .description-content h3 {
        font-size: 1.2rem;
        margin: 25px 0 12px 0;
        padding-left: 12px;
    }
    
    .description-content p,
    .description-content ul li {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .description-content ul li {
        padding-left: 20px;
    }
    
    .project-image {
        margin-top: 30px;
    }
 }

/* Estilos para el texto debajo de la imagen del proyecto */
.project-detailed-image + * {
    margin-top: 40px;
}

.project-detailed-image ~ h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.project-detailed-image ~ p {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.project-detailed-image ~ ul {
    margin-top: 15px;
    margin-bottom: 25px;
    padding-left: 25px;
}

.project-detailed-image ~ ul li {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
    text-align: justify;
}

/* Espaciado específico para el primer elemento después de la imagen */
.project-detailed-image + h3 {
    margin-top: 40px;
}

/* Responsive para texto del proyecto */
@media (max-width: 768px) {
    .project-detailed-image ~ h3 {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 12px;
    }
    
    .project-detailed-image ~ p {
        font-size: 0.95em;
        line-height: 1.6;
        margin-bottom: 18px;
    }
    
    .project-detailed-image ~ ul {
        padding-left: 20px;
        margin-bottom: 20px;
    }
    
    .project-detailed-image ~ ul li {
        font-size: 0.95em;
        margin-bottom: 6px;
    }
}

/* ===== GRID LAYOUT Y ACORDEÓN STYLES ===== */
.project-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-column {
    padding-right: 20px;
}

.details-column {
    padding-left: 20px;
}

/* Estilos del Acordeón */
.accordion {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-item.active .accordion-header {
    background: #ff6b35;
    color: white;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

.accordion-content p {
    padding: 25px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}

/* Estilos para la columna de detalles */
.details-column h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b35;
}

.details-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-column ul li {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    text-align: justify;
}

.details-column ul li::before {
    content: "▶";
    color: #ff6b35;
    font-size: 0.8rem;
    position: absolute;
    left: 0;
    top: 2px;
}

.details-column ul li strong {
    color: #333;
    font-weight: 600;
}

/* Responsive Design para Grid y Acordeón */
@media (max-width: 768px) {
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 30px;
    }
    
    .accordion-column,
    .details-column {
        padding: 0;
    }
    
    .accordion-header {
        padding: 15px 20px;
    }
    
    .accordion-header h3 {
        font-size: 1rem;
    }
    
    .accordion-content p {
        padding: 20px;
        font-size: 0.95rem;
    }
    
    .details-column h3 {
        font-size: 1.2rem;
    }
    
    .details-column ul li {
        font-size: 0.95rem;
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .project-info-grid {
        gap: 30px;
        margin-top: 25px;
    }
    
    .accordion-header {
        padding: 12px 15px;
    }
    
    .accordion-header h3 {
        font-size: 0.95rem;
    }
    
    .accordion-icon {
        font-size: 1.3rem;
    }
    
    .accordion-content p {
        padding: 15px;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .details-column h3 {
        font-size: 1.1rem;
    }
    
    .details-column ul li {
        font-size: 0.9rem;
        padding-left: 18px;
        line-height: 1.6;
    }
}