﻿/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-full {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    padding-top: 7px;
}

.logo-full:hover {
    transform: scale(1.05);
}

.logo-icon-mobile {
    display: none;
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #037ef5;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #037ef5;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide-content p {
    font-size: 1.2rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.hero-controls button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-controls button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: white;
}

/* Secciones generales */
.section {
    padding: 5rem 0;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.divider {
    width: 80px;
    height: 4px;
    background: #037ef5;
    margin: 0 auto;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Sección Empresa */
.empresa-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.empresa-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.empresa-features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    color: #037ef5;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

.empresa-info {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.profile-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: #037ef5;
    font-weight: 500;
    font-size: 1.1rem;
}

.profile-info span {
    color: #999;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.2rem;
}

.certifications {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #037ef5;
    text-align: left;
}

.cert-item i {
    color: #037ef5;
    font-size: 1.2rem;
}

.cert-item span {
    color: #555;
    font-size: 0.95rem;
}

/* Sección Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Responsive para servicios */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card.highlight {
    border: 2px solid #037ef5;
    transform: scale(1.02);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card.highlight:hover {
    transform: translateY(-5px) scale(1.02);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #037ef5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-details {
    text-align: left;
    margin-top: 1rem;
}

.service-details ul {
    list-style: none;
    padding: 0;
}

.service-details li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.5rem;
    color: #555;
    font-size: 0.9rem;
}

.service-details li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #037ef5;
    font-weight: bold;
}

/* Sección de Equipo */
.equipment-section {
    margin-top: 4rem;
    text-align: center;
}

.equipment-section h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.equipment-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.equipment-icon {
    width: 80px;
    height: 80px;
    background: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.equipment-icon i {
    font-size: 2rem;
    color: white;
}

.equipment-info h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.equipment-info p {
    color: #666;
    margin-bottom: 1rem;
}

.accessories {
    margin-top: 1rem;
}

.accessories strong {
    color: #333;
    font-size: 1rem;
}

.accessories ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.accessories li {
    position: relative;
    padding: 0.2rem 0 0.2rem 1.2rem;
    color: #555;
    font-size: 0.9rem;
}

.accessories li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c3e50;
    font-weight: bold;
}

/* Contacto actualizado */
.coming-soon {
    color: #999 !important;
    font-style: italic;
}

/* Sección Trabajos */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Galería expandible */
.gallery-hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s ease, opacity 0.5s ease, margin-top 0.5s ease;
    margin-top: 0;
}

.gallery-hidden.show {
    max-height: 5000px;
    opacity: 1;
    margin-top: 1.5rem;
}

.gallery-toggle-container {
    text-align: center;
    margin-top: 3rem;
}

.gallery-toggle-btn {
    background: linear-gradient(135deg, #037ef5 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(3, 126, 245, 0.3);
}

.gallery-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 126, 245, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #037ef5 100%);
}

.gallery-toggle-btn:active {
    transform: translateY(0);
}

.gallery-toggle-btn i:last-child {
    transition: transform 0.3s ease;
}

.gallery-toggle-btn.active i:last-child {
    transform: rotate(180deg);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Sección Contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-content-centered {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

.contact-content-centered .contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #037ef5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-details p {
    font-size: 1rem;
    color: #037ef5;
    margin-bottom: 0.3rem;
}

.contact-details a {
    color: #037ef5;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details span {
    font-size: 0.9rem;
    color: #666;
}

/* Formulario de contacto */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #037ef5;
}

.submit-btn {
    background: #037ef5;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    background: #c0392b;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.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;
    color: #037ef5;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #bbb;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #bbb;
}

.footer-contact i {
    color: #037ef5;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-full {
        display: none;
    }
    
    .logo-icon-mobile {
        display: block;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .empresa-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .empresa-info {
        order: -1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content-centered .contact-info {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        margin: 0 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-controls {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .certifications {
        gap: 0.5rem;
    }
    
    .cert-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .equipment-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .equipment-info {
        text-align: center;
    }
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estados iniciales para evitar el salto */
.section {
    opacity: 1;
    transform: translateY(0);
}

.section:not(.animate) .section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: none;
}

.section:not(.animate) .service-card,
.section:not(.animate) .gallery-item,
.section:not(.animate) .contact-item,
.section:not(.animate) .feature {
    opacity: 0;
    transform: translateY(15px);
    transition: none;
}

/* Animaciones cuando se activa */
.section.animate .section-header {
    animation: fadeInUp 0.6s ease-out forwards;
}

.section.animate .service-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.section.animate .service-card:nth-child(2) { animation-delay: 0.1s; }
.section.animate .service-card:nth-child(3) { animation-delay: 0.2s; }
.section.animate .service-card:nth-child(4) { animation-delay: 0.3s; }

.section.animate .gallery-item {
    animation: fadeInUp 0.5s ease-out forwards;
}

.section.animate .gallery-item:nth-child(2) { animation-delay: 0.1s; }
.section.animate .gallery-item:nth-child(3) { animation-delay: 0.2s; }
.section.animate .gallery-item:nth-child(4) { animation-delay: 0.3s; }
.section.animate .gallery-item:nth-child(5) { animation-delay: 0.4s; }
.section.animate .gallery-item:nth-child(6) { animation-delay: 0.5s; }

.section.animate .contact-item {
    animation: slideInLeft 0.6s ease-out forwards;
}

.section.animate .contact-item:nth-child(2) { animation-delay: 0.1s; }
.section.animate .contact-item:nth-child(3) { animation-delay: 0.2s; }
.section.animate .contact-item:nth-child(4) { animation-delay: 0.3s; }

.section.animate .feature {
    animation: slideInRight 0.6s ease-out forwards;
}

.section.animate .feature:nth-child(2) { animation-delay: 0.1s; }
.section.animate .feature:nth-child(3) { animation-delay: 0.2s; }

/* Smooth scroll mejorado */
html {
    scroll-behavior: smooth;
}

/* Optimizaciones de performance para animaciones */
.section,
.service-card,
.gallery-item,
.contact-item,
.feature,
.section-header {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Reduce motion para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .section:not(.animate) .section-header,
    .section:not(.animate) .service-card,
    .section:not(.animate) .gallery-item,
    .section:not(.animate) .contact-item,
    .section:not(.animate) .feature {
        opacity: 1;
        transform: none;
    }
}
