/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

:root {
    --primary-color: #09274d;
    --secondary-color: #09274d;
    --accent-color: #09274d;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Fuente Montserrat cargada desde HTML */

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    font-weight: 400;
}

/* Estilos para párrafos con Montserrat Light */
p {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300 !important;
    line-height: 1.6;
}

/* Quitar bullets de las listas en service-cards y organizar en 4 columnas */
.service-card ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.service-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-card li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive para las listas en service-cards */
@media (max-width: 768px) {
    .service-card ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .service-card ul {
        grid-template-columns: 1fr;
    }
}

/* Estilos mejorados para el proceso de restauración */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.process-step {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.process-step .step-number {
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(9, 39, 77, 0.3);
}

.process-step h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.process-step p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.process-step ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.process-step li {
    position: relative;
    padding-left: 1.5rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.process-step li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1rem;
}

/* Responsive para el proceso */
@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        padding: 1.5rem;
    }
    
    .process-step ul {
        grid-template-columns: 1fr;
    }
    
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

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

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.navbar-brand a {
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

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

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    overflow: hidden;
}

/* Hero background eliminado - se usa hero-section en su lugar */

/* Hero overlay duplicado eliminado */

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

/* Hero title duplicado eliminado */

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Secciones generales */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--light-gray);
}

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

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.stat-label {
    color: var(--dark-gray);
    font-weight: 500;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-icon i {
    font-size: 1.2rem;
    color: var(--white);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Projects Section */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-info {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.project-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.projects-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Testimonials Section */
.testimonials {
    background: var(--light-gray);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stars {
    color: #f39c12;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--dark-gray);
}

.contact-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer - Removed duplicate */

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

/* Estilos antiguos del footer eliminados - ahora se usan los nuevos estilos */

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin-left: 1rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Páginas específicas */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    margin-top: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(9, 39, 77, 0.8), rgba(9, 39, 77, 0.6));
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

/* Responsive para page-hero */
@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
        margin-top: 0;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 80px 0 50px;
        margin-top: 0;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
}

/* About Page */
.about-detail {
    padding: 80px 0;
}

/* Nuestra Historia Page */
.company-story {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.story-text h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.story-text p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.company-timeline {
    padding: 80px 0;
    background: white;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 120px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0 2rem;
    flex: 1;
    max-width: 300px;
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.company-values {
    padding: 80px 0;
    background: #f8f9fa;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.value-icon {
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.value-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.company-mission {
    padding: 80px 0;
    background: white;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.mission-card, .vision-card {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.card-icon {
    background: var(--primary-color);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
}

.mission-card h3, .vision-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.mission-card p, .vision-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1.1rem;
    margin: 0;
}

.company-team {
    padding: 80px 0;
    background: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-member {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.member-info {
    padding: 2rem;
    text-align: center;
}

.member-info h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-info span {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.member-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.company-stats {
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
}

.company-stats .section-header h2 {
    color: white;
}

.company-stats .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.company-future {
    padding: 80px 0;
    background: white;
}

.future-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.future-content > p {
    color: #666;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.future-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.plan-item {
    text-align: center;
    padding: 2rem;
}

.plan-item i {
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.plan-item h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.plan-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.company-cta {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.cta-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-content p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.mission-vision {
    background: var(--light-gray);
    padding: 80px 0;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.mission-card,
.vision-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: var(--white);
}

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

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    font-size: 2rem;
    color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.member-image {
    height: 250px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-info span {
    color: var(--secondary-color);
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

/* Services Page */
.services-detail {
    padding: 80px 0;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.service-item.reverse {
    direction: rtl;
}

.service-item.reverse .service-content {
    direction: ltr;
}

.service-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-content h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
}

.service-content ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-content li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.service-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

/* Projects Page */
.projects-portfolio {
    padding: 80px 0;
}

/* Contact Page */
.contact-page {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details .contact-item {
    margin-bottom: 2rem;
}

.contact-text h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.map-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-section {
    padding: 80px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    position: relative;
}

.close {
    color: var(--dark-gray);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--primary-color);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
        font-weight: 100;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content,
    .about-grid,
    .mission-vision-grid,
    .contact-content,
    .contact-grid,
    .service-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Responsive para Nuestra Historia */
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .future-plans {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        min-width: 60px;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .timeline-content {
        margin: 0;
        max-width: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links a {
        margin: 0 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
        font-weight: 100;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .project-card,
    .testimonial-card {
        margin: 0 10px;
    }
}

/* Header Transparente */
.header-transparent {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease;
}

.header-transparent.scrolled {
    background: transparent;
    backdrop-filter: none;
}

.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    position: relative;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 1rem 2rem;
    background: #0a274b;
    color: #fff !important;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Toggle mantiene color blanco en scroll */
.header-transparent.scrolled .nav-toggle span {
    background: white;
}

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

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

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

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 1000;
}

/* Desktop Navigation - Revertido */

.nav-menu.active {
    right: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    text-align: center;
}

/* Desktop Navigation List - Revertido */

.nav-list li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

/* Desktop Navigation Links - Revertido */

.nav-list li a:hover {
    color: #6c757d;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--primary-color), transparent);
    z-index: 2;
}

.hero-logo-top {
    position: absolute;
    top: 120px;
    left: 50px;
    z-index: 10;
}

.hero-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.hero-content {
    text-align: left;
    z-index: 10;
    max-width: 920px;
    padding: 0;
    margin-left: 0;
}

.hero-text {
    padding: 3rem;
}

.hero-title {
    color: white;
    font-size: 3rem;
    font-weight: 200;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-line {
    display: block;
    margin-bottom: 0.5rem;
}

.hero-title strong {
    font-weight: 700;
}

/* Responsive para Hero */
@media (max-width: 768px) {
    .hero-logo-top {
        top: 80px;
        left: 20px;
    }
    
    .hero-logo {
        height: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
        font-weight: 100;
    }
    
    .hero-text {
        padding: 1rem 1rem 2rem 1rem;
    }
    
    /* Responsive para navegación */
    .navbar {
        padding: 0;
    }
    
    .nav-toggle {
        padding: 0.8rem 1rem;
        background: #0a274b;
        color: #fff !important;
    }
    
    .nav-toggle {
        margin-right: 0;
    }
    
    .nav-menu {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
        font-weight: 100;
    }
    
    .hero-text {
        padding: 0.5rem 1rem 1.5rem 1rem;
    }
    
    .hero-logo-top {
        top: 195px;
        left: 38px;
    }
    
    .hero-logo {
        height: 50px;
    }
    
    /* Responsive para navegación en móviles pequeños */
    .navbar {
        padding: 0;
    }
    
    .nav-toggle {
        padding: 0.6rem 1rem;
        background: #0a274b;
        color: #fff !important;
    }
    
    /* Responsive móvil para Nuestra Historia */
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .story-text h2 {
        font-size: 2rem;
    }
    
    .future-content h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .nav-toggle span {
        width: 20px;
        height: 2px;
    }
}

/* Video Section */
.video-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

        .video-cover-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 1;
        }

        /* Modal de resultado */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: white;
            border-radius: 10px;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease-out;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            padding: 20px 25px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border-radius: 10px 10px 0 0;
        }

        .modal-header h3 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 600;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 2rem;
            color: white;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background-color 0.3s ease;
        }

        .modal-close:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .modal-body {
            padding: 25px;
            font-size: 1.1rem;
            line-height: 1.6;
            color: #333;
        }

        .modal-footer {
            padding: 20px 25px;
            border-top: 1px solid #eee;
            text-align: right;
            background-color: #f8f9fa;
            border-radius: 0 0 10px 10px;
        }

        .modal-footer .btn {
            padding: 12px 30px;
            font-size: 1rem;
            border-radius: 5px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .modal-footer .btn-primary {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
        }

        .modal-footer .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.video-content {
    text-align: center;
    z-index: 10;
    color: white;
}

.video-play-button {
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: none;
}

.video-play-button:hover {
    transform: scale(1.1);
}

.play-icon {
    transition: var(--transition);
}

.play-icon svg {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.video-play-button:hover .play-icon svg {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.video-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Responsive para Video Section */
@media (max-width: 768px) {
    .video-section {
        height: 60vh;
    }
    
    .video-play-button {
        padding: 0;
    }
    
    .play-icon svg {
        width: 100px;
        height: 100px;
    }
    
    .video-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-section {
        height: 50vh;
    }
    
    .video-play-button {
        padding: 0;
    }
    
    .play-icon svg {
        width: 80px;
        height: 80px;
    }
    
    .video-text {
        font-size: 0.9rem;
    }
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 70vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    background: rgb(10 39 75);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-modal-close:hover {
    background: rgb(10 39 75);
    transform: scale(1.1);
}

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

.video-container iframe {
    border-radius: 12px;
}

/* Responsive para Video Modal */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        height: 60vh;
    }
    
    .video-modal-close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        width: 98%;
        height: 50vh;
    }
    
    .video-modal-close {
        top: 8px;
        right: 12px;
        font-size: 1.8rem;
        width: 40px;
        height: 40px;
    }
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.success-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.success-modal.active .success-modal-content {
    transform: scale(1);
}

.success-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #666;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    background: #f5f5f5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
}

.success-modal-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: scale(1.1);
}

.success-modal-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.success-modal h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.success-modal p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-modal-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.success-modal-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .success-modal-content {
        width: 95%;
        padding: 2.5rem 1.5rem;
    }
    
    .success-modal-close {
        top: 12px;
        right: 15px;
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
    
    .success-modal-icon {
        font-size: 3.5rem;
    }
    
    .success-modal h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .success-modal-content {
        width: 98%;
        padding: 2rem 1rem;
    }
    
    .success-modal-close {
        top: 10px;
        right: 12px;
        font-size: 1.6rem;
        width: 32px;
        height: 32px;
    }
    
    .success-modal-icon {
        font-size: 3rem;
    }
    
    .success-modal h3 {
        font-size: 1.4rem;
    }
}

/* Services Section */
.services {
    background: var(--primary-color);
    padding: 0;
    overflow: hidden;
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    min-height: 100vh;
}

.service-column {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.service-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--primary-color), transparent);
    pointer-events: none;
    z-index: 1;
}

.service-column.restoration .service-image::after {
    background: linear-gradient(to top, #fff, transparent);
}

.service-column.maintenance .service-image,
.service-column.construction .service-image {
    height: 500px !important;
}

.service-column.restoration .service-image {
    height: 400px !important;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-column.maintenance .service-img,
.service-column.construction .service-img {
    height: 500px !important;
}

.service-column.restoration .service-img {
    height: 400px !important;
}

.service-column:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
    color: white;
    background: var(--primary-color);
    position: relative;
}

.service-column.restoration {
    background: #fff;
}

.service-column.restoration .service-content {
    background: white;
    color: var(--primary-color);
}

.service-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white !important;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.1;
}

.service-column.restoration .service-title {
    color: var(--primary-color) !important;
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
}

.service-column.restoration .service-description {
    color: var(--primary-color);
}

.service-description strong {
    font-weight: 400;
    color: white;
}

.service-column.restoration .service-description strong {
    color: var(--primary-color);
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Essence Section */
.essence-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.essence-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.essence-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.essence-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--primary-color), transparent);
    z-index: 1;
}

.essence-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    color: white;
    max-width: 800px;
    padding: 4rem 2rem;
    margin: 0 auto;
}

.essence-quote {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* History Cover Section */
.history-cover-section {
    background: var(--primary-color);
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    position: relative;
}

.history-cover-content {
    text-align: left;
    max-width: 1200px;
    width: 100%;
}

.history-text {
    color: white;
}

.history-title {
    font-size: 4.5rem;
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.1;
}

.history-title-bold {
    font-weight: 900 !important;
    margin-right: 0.5rem;
}

.history-title-thin {
    font-weight: 200 !important;
}

/* Our History Section */
.our-history-section {
    padding: 0 0 6rem 0;
    background: var(--white);
}

.history-container {
    width: 100%;
    margin: 0;
}

.history-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
}

.history-row:last-child {
    margin-bottom: 0;
}

.history-text-column {
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
}

.history-image-column {
    display: flex;
    align-items: center;
}

.history-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    margin: 0;
}

.history-content strong {
    font-weight: 400;
    color: var(--primary-color);
}

.history-image-item {
    width: 100%;
    overflow: hidden;
}

.history-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Quote Section */
.quote-section {
    padding: 4rem 2rem;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.quote-section::before,
.quote-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.quote-section::before {
    top: 0;
}

.quote-section::after {
    bottom: 0;
}

.quote-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-container::before {
    content: '"';
    font-size: 12rem;
    font-weight: 100;
    color: var(--primary-color);
    line-height: 1;
    position: absolute;
    opacity: 0.4;
    font-family: 'Georgia', serif;
    letter-spacing: -0.1em;
    top: -3rem;
    left: -6rem;
    z-index: 1;
}

.quote-container::after {
    content: '"';
    font-size: 12rem;
    font-weight: 100;
    color: var(--primary-color);
    line-height: 1;
    position: absolute;
    opacity: 0.4;
    font-family: 'Georgia', serif;
    letter-spacing: -0.1em;
    bottom: -5rem;
    right: -4rem;
    z-index: 1;
}

.quote-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.quote-text {
    font-size: 1.8rem;
    font-weight: 100;
    line-height: 1.4;
    color: var(--primary-color);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.quote-line {
    display: block;
    margin-bottom: 1rem;
}

.quote-text strong {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Responsive para Services Section */
@media (max-width: 1024px) {
    .service-title {
        font-size: 2rem;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
        min-height: auto;
    }
    
    .service-column {
        margin: 0.5rem 0;
    }
    
    .service-image {
        height: auto;
    }
    
    .service-column.maintenance .service-image,
    .service-column.construction .service-image {
        height: 500px !important;
    }
    
    .service-column.restoration .service-image {
        height: 400px !important;
    }
    
    .service-column.maintenance .service-img,
    .service-column.construction .service-img {
        height: 500px !important;
    }
    
    .service-column.restoration .service-img {
        height: 400px !important;
    }
    
    .service-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
        line-height: 1.2;
        color: white !important;
    }
    
    .service-column.restoration .service-title {
        color: var(--primary-color) !important;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .service-content {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .service-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 320px) {
    .service-title {
        font-size: 1.1rem;
        letter-spacing: 0px;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-description {
        font-size: 0.8rem;
        line-height: 1.6;
    }
}

/* Responsive para Essence Section */
@media (max-width: 768px) {
    .essence-section {
        height: 60vh;
    }
    
    .essence-quote {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .essence-section {
        height: 50vh;
    }
    
    .essence-quote {
        font-size: 1.5rem;
    }
    
    .essence-content {
        padding: 2rem 1rem;
    }
}

/* Responsive para History Cover Section */
@media (max-width: 768px) {
    .history-cover-section {
        padding: 4rem 1.5rem;
        min-height: 50vh;
    }
    
    .history-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .history-cover-section {
        padding: 3rem 1rem;
        min-height: 40vh;
    }
    
    .history-title {
        font-size: 2.8rem;
        letter-spacing: 1px;
    }
}

/* Responsive para Our History Section */
@media (max-width: 768px) {
    .our-history-section {
        padding: 4rem 1.5rem;
    }
    
    .history-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
        padding: 0;
    }
    
    .history-text-column {
        padding: 2rem 1.5rem;
    }
    
    .history-content p {
        font-size: 1.1rem;
        text-align: left;
    }
    
    .history-content {
        text-align: left;
    }
    
    .history-text-column {
        text-align: left;
    }
    
    /* Revertir orden en móvil: texto primero, imagen después */
    .history-row {
        display: flex;
        flex-direction: column;
    }
    
    .history-text-column {
        order: 1;
    }
    
    .history-image-column {
        order: 2;
    }
    
    .history-img {
        height: 400px;
        width: 100%;
        object-fit: cover;
    }
    
    .history-image-item {
        width: 100%;
        aspect-ratio: 1;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .our-history-section {
        padding: 3rem 1rem;
    }
    
    .history-row {
        gap: 0;
        margin-bottom: 0;
    }
    
    .history-text-column {
        padding: 1.5rem 1rem;
    }
    
    .history-content p {
        font-size: 1rem;
        text-align: left;
    }
    
    .history-content {
        text-align: left;
    }
    
    .history-text-column {
        text-align: left;
    }
    
    /* Revertir orden en móvil: texto primero, imagen después */
    .history-row {
        display: flex;
        flex-direction: column;
    }
    
    .history-text-column {
        order: 1;
    }
    
    .history-image-column {
        order: 2;
    }
    
    .history-img {
        height: 500px;
        width: 100%;
        object-fit: cover;
    }
    
    .history-image-item {
        width: 100%;
        aspect-ratio: 1;
        overflow: hidden;
    }
}

/* Responsive para Quote Section */
@media (max-width: 768px) {
    .quote-section {
        padding: 3rem 1.5rem;
    }
    
    .quote-container::before,
    .quote-container::after {
        font-size: 8rem;
    }
    
    .quote-container::before {
        top: -2rem;
        left: -3rem;
    }
    
    .quote-container::after {
        bottom: -3.5rem;
        right: -2rem;
    }
    
    .quote-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quote-section {
        padding: 2rem 2rem;
    }
    
    .quote-container::before,
    .quote-container::after {
        font-size: 6rem;
    }
    
    .quote-container::before {
        top: -1.5rem;
        left: -2rem;
    }
    
    .quote-container::after {
        bottom: -2.5rem;
        right: -1rem;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
    
    .quote-line {
        margin-bottom: 0.5rem;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 0;
    background: white;
    overflow: hidden;
}

.gallery-carousel {
    width: 100%;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(300% + 2rem);
}

.gallery-item {
    flex: 5% 0 0;
    margin-right: 2rem;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Stats Section */
.stats-section {
    padding: 6rem 0;
    background: var(--primary-color);
    color: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stats-content {
    text-align: center;
}

.stats-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 4rem;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
}

.stats-title strong {
    font-weight: 700;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    width: 100%;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    width: 100%;
}

/* Responsive para Stats Section */
@media (max-width: 768px) {
    .stats-section {
        padding: 4rem 0;
    }
    
    .stats-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 3rem 0;
    }
    
    .stats-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Clients Section */
.clients-section {
    padding: 5rem 0;
    background: var(--white);
}

.clients-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.clients-header {
    text-align: center;
    margin-bottom: 4rem;
}

.clients-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.clients-subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin: 0;
}

.clients-carousel {
    overflow: hidden;
    position: relative;
}

.clients-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(200px * 12); /* 6 logos duplicados */
}

.client-logo {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    margin: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    transition: var(--transition);
}

.client-logo:hover {
    transform: translateY(-5px);
}

.client-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 6));
    }
}

/* Contact Form Section */
.contact-form-section {
    padding: 6rem 0;
    background: var(--primary-color);
    color: white;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.contact-form-wrapper {
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    border: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: white;
}

.form-input,
.form-select,
.form-textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.2);
}

.form-select option {
    background: var(--primary-color);
    color: white;
}

.submit-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Aviso de Privacidad */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

.page-content {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 3rem;
    position: relative;
    z-index: 1;
}

.content-text h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
}

.content-text h2:first-child {
    margin-top: 0;
}

.content-text h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.content-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.05rem;
}

.content-text ul {
    margin: 1.5rem 0 2rem 2rem;
    line-height: 1.8;
    list-style: none;
    padding: 0;
}

.content-text li {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.05rem;
}

.content-text li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
    top: 0.2rem;
}

.content-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.privacy-footer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 3rem;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.privacy-footer::before {
    content: 'ℹ️';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

.privacy-footer p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.privacy-footer p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: #888;
}

/* Efectos adicionales */
.content-text h2:hover {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.content-text a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.content-text a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Responsive para Aviso de Privacidad */
@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0 60px;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .page-content {
        padding: 2rem 0;
    }
    
    .content-wrapper {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        border-radius: 8px;
    }
    
    .content-text h2 {
        font-size: 1.4rem;
        margin: 2rem 0 1rem 0;
    }
    
    .content-text p {
        font-size: 1rem;
    }
    
    .content-text li {
        font-size: 1rem;
    }
    
    .privacy-footer {
        padding: 2rem 1.5rem;
        margin: 2rem 0 0 0;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .content-wrapper {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .content-text h2 {
        font-size: 1.2rem;
    }
    
    .content-text h2::before {
        width: 30px;
    }
    
    .privacy-footer {
        padding: 1.5rem 1rem;
    }
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.2);
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 1.2rem;
}

.alert-success strong {
    color: #28a745;
    font-size: 1.1rem;
}

.alert-success div {
    line-height: 1.4;
}

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

/* Footer */
.footer {
    background: #f8f9fa;
    color: var(--primary-color);
    padding: 2rem 0 1rem;
    width: 100%;
}

.footer-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
    justify-items: center;
    width: 100%;
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.footer-links .footer-separator {
    color: var(--primary-color);
    opacity: 0.5;
    font-weight: bold;
    margin: 0 0.5rem;
}

.footer-links h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}



.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(2000%) hue-rotate(200deg) brightness(0.3) contrast(1.5);
}

.footer-company-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color) !important;
}

.footer-description {
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.contact-icon {
    font-size: 1.2rem;
}

.footer-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    color: var(--primary-color) !important;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}


.footer-bottom {
    border-top: none;
    padding-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    margin: 0;
    opacity: 0.7;
    color: var(--primary-color) !important;
}

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

.footer-legal-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-legal-link:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.footer-legal-link {
    color: var(--primary-color);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.footer-legal-link:hover {
    opacity: 1;
    color: var(--white);
    background-color: var(--primary-color);
}

.footer-separator {
    color: var(--primary-color);
    opacity: 0.5;
    font-weight: bold;
}

/* Estilos duplicados eliminados */

/* Floating Social Buttons */
.floating-social {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn {
    background: #25d366;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-icon {
    font-size: 1.2rem;
}

.social-text {
    font-size: 0.9rem;
}

/* Responsive para Gallery Section */
@media (max-width: 768px) {
    .gallery-track {
        width: calc(400% + 2rem);
    }
    
    .gallery-item {
        flex: 8.33% 0 0;
        margin-right: 1.5rem;
    }
    
    .gallery-img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .gallery-track {
        width: calc(400% + 2rem);
    }
    
    .gallery-item {
        flex: 8.33% 0 0;
        margin-right: 1rem;
    }
    
    .gallery-img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 1rem;
    }
    
    .gallery-img {
        height: 200px;
    }
}

/* Responsive para Clients Section */
@media (max-width: 768px) {
    .clients-section {
        padding: 3rem 0;
    }
    
    .clients-title {
        font-size: 2.2rem;
    }
    
    .clients-subtitle {
        font-size: 1rem;
    }
    
    .client-logo {
        width: 150px;
        height: 100px;
        margin: 0 1rem;
    }
    
    .clients-track {
        width: calc(150px * 12);
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 6));
        }
    }
}

@media (max-width: 480px) {
    .clients-title {
        font-size: 1.8rem;
    }
    
    .client-logo {
        width: 120px;
        height: 80px;
        margin: 0 0.8rem;
    }
    
    .clients-track {
        width: calc(120px * 12);
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-120px * 6));
        }
    }
}

/* Responsive para Contact Form Section */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 4rem 0;
    }
    
    .contact-title {
        font-size: 2.2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Responsive para Footer */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        justify-items: center;
    }
    
    .footer-links {
        flex-direction: row;
        gap: 0.8rem;
        align-items: center;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links .footer-separator {
        display: none;
    }
    
    .footer-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-company-name {
        font-size: 1.3rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-legal-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .floating-social {
        right: 1rem;
        bottom: 1rem;
    }
    
    .social-btn {
        width: 55px;
        height: 55px;
    }
    
    .social-text {
        display: none;
    }
}

/* Mejoras adicionales para móvil */
@media (max-width: 480px) {
    /* Asegurar que no haya desbordamiento horizontal */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Ajustar contenedores principales */
    .container,
    .services-container,
    .gallery-container,
    .clients-container,
    .contact-container,
    .footer-container {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Ajustar textos para evitar desbordamiento */
    .hero-title {
        font-size: 1.9rem;
        font-weight: 300;
        line-height: 1.3;
        padding: 0rem;
    }
    
    .hero-line {
        margin-bottom: 0.3rem;
    }
    
    /* Ajustar botones flotantes */
    .floating-social {
        right: 0.5rem;
        bottom: 0.5rem;
    }
    
    .social-btn {
        width: 50px;
        height: 50px;
    }
    
    /* Ajustar formulario */
    .contact-form-wrapper {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* Evitar zoom en iOS */
    }
    
    /* Ajustar galería */
    .gallery-container {
        gap: 0.5rem;
    }
    
    .gallery-img {
        height: 180px;
    }
    
    /* Ajustar carrusel de clientes */
    .client-logo {
        width: 100px;
        height: 70px;
        margin: 0 0.5rem;
    }
    
    .clients-track {
        width: calc(100px * 12);
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100px * 6));
        }
    }
}

/* Ajustes específicos para pantallas muy pequeñas */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.2rem;
        font-weight: 100;
        padding: 1rem;
    }
    
    .contact-title {
        font-size: 1.6rem;
    }
    
    .clients-title {
        font-size: 1.6rem;
    }
    
    .gallery-img {
        height: 150px;
    }
    
    .floating-social {
        right: 0.3rem;
        bottom: 0.3rem;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
    }
}

/* Construction Services Section */
.construction-services {
    padding: 5rem 0;
    background: var(--white);
}

/* Construction Process Section */
.construction-process {
    padding: 5rem 0;
    background: var(--light-gray);
}

.construction-process .process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.construction-process .process-step {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.construction-process .step-number {
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.construction-process .process-step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.construction-process .process-step p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Construction Features Section */
.construction-features {
    padding: 5rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    background: var(--primary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Construction Projects Section */
.construction-projects {
    padding: 5rem 0;
    background: var(--light-gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-content p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-type {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-year {
    color: var(--dark-gray);
    font-weight: 500;
}

/* Construction CTA Section */
.construction-cta {
    padding: 5rem 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.construction-cta .cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.construction-cta .cta-content p {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.construction-cta .btn {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.construction-cta .btn:hover {
    background: transparent;
    color: var(--white);
}

/* Responsive para Construction */
@media (max-width: 1024px) {
    .construction-process .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .construction-services,
    .construction-process,
    .construction-features,
    .construction-projects,
    .construction-cta {
        padding: 3rem 0;
    }
    
    .construction-process .process-steps {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .construction-cta .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .construction-services,
    .construction-process,
    .construction-features,
    .construction-projects,
    .construction-cta {
        padding: 2rem 0;
    }
    
    .construction-process .process-step,
    .feature-card {
        padding: 1.5rem;
    }
    
    .construction-cta .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .construction-cta .cta-content p {
        font-size: 1rem;
    }
}
