/* ========================================
   RESET Y BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    color: #333;
    line-height: 1.6;
}

/* ========================================
   HEADER Y NAVEGACIÓN
   ======================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1a1a1a;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '';
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff0000, #ff0000);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff0000;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ff0000;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Información de contacto en header */
.header-contact {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
    font-size: 0.9rem;
}

.header-contact .phone {
    color: #ff0000;
    font-weight: 600;
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    margin-top: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
}

.slide-bg-1 {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080"%3E%3Crect fill="%231a1a1a" width="1920" height="1080"/%3E%3C/svg%3E');
}

.slide-bg-2 {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080"%3E%3Crect fill="%232a2a2a" width="1920" height="1080"/%3E%3C/svg%3E');
}

.slide-bg-3 {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080"%3E%3Crect fill="%231a1a1a" width="1920" height="1080"/%3E%3C/svg%3E');
}

.slide-content {
    text-align: left;
    color: white;
    padding: 2rem 5%;
    max-width: 700px;
    animation: slideUp 1s ease-out;
    margin-left: 5%;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ff0000;
    text-transform: capitalize;
    letter-spacing: 1px;
    font-weight: 500;
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    text-transform: capitalize;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,0,0,0.3);
}

/* Controles del slider */
.slider-controls {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
}

.slider-controls button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #1a1a1a;
    font-size: 1.2rem;
}

.slider-controls button:hover {
    background: #ff0000;
    color: white;
    transform: scale(1.1);
}

/* Social Media Icons (lado izquierdo) */
.social-sidebar {
    position: fixed;
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.social-sidebar a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-sidebar a:hover {
    background: #ff0000;
    transform: scale(1.1);
}

/* ========================================
   SCROLLING TEXT
   ======================================== */
.scrolling-text {
    background: #ff0000;
    color: white;
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
}

.scroll-container {
    display: flex;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.scroll-text {
    display: flex;
    white-space: nowrap;
    font-size: 1.5rem;
    font-weight: 600;
}

.scroll-text span {
    padding: 0 3rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    padding: 8rem 5%;
    background: #f8f9fa;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(255, 0, 0, 0.901);
    animation: pulse 2s infinite;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: #ff0000;
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(255,165,0,0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.experience-badge .number {
    font-size: 3rem;
    font-weight: 700;
}

.about-content {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.section-tag {
    color: #ff0000;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-weight: 700;
    color: #1a1a1a;
}

.about-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ========================================
   PROGRESS BARS
   ======================================== */
.progress-bar {
    margin: 2rem 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.progress-bg {
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ff0000);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-out;
}

.progress-bar.visible .progress-fill {
    width: var(--progress);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
    padding: 8rem 5%;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border-color: #ff0000;
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff0000, #ff0000);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.service-icon img {
    width: 140px;
    height: 140px;
    object-fit: cover;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    padding: 8rem 5%;
    background: #f8f9fa;
}

.testimonial-slider {
    max-width: 900px;
    margin: 4rem auto;
    position: relative;
    min-height: 400px;
}

.testimonial {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.testimonial.active {
    opacity: 1;
    display: block;
    position: relative;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000, #ff0000);
    margin: 0 auto 1.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.testimonial-position {
    color: #ff0000;
    font-size: 0.95rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: 8rem 5%;
    background: white;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255,0,0,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #ff0000;
    font-size: 1.2rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff0000;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .slide-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .slide-content {
        margin-left: 0;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content h2 {
        font-size: 1rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .experience-badge {
        width: 120px;
        height: 120px;
        bottom: -20px;
        right: -20px;
    }
    
    .experience-badge .number {
        font-size: 2rem;
    }
    
    .about-section,
    .services-section,
    .testimonials-section,
    .contact-section {
        padding: 4rem 5%;
    }
    
    .scroll-text {
        font-size: 1.2rem;
    }
    
    .scroll-text span {
        padding: 0 2rem;
    }
    
    .social-sidebar {
        display: none;
    }
    
    .slider-controls {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial {
        padding: 2rem 1.5rem;
    }
}