html {
    scroll-behavior: smooth;
}

body {
    font-family: sans-serif;
    margin: 0;
    color: #FFFFFF;
    position: relative;
    /* Degradado radial de fondo como en la imagen */
    background: radial-gradient(ellipse at center, #C41E3A 0%, #8B1538 30%, #5D0F25 60%, #3D0A18 100%);
    min-height: 100vh;
}



/* Asegurar que el contenido principal esté por encima del fondo */
.header-bar,
#hero {
    position: relative;
    z-index: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-bar {
    background-color: rgba(61, 10, 24, 0.95);
    width: 100%;
    margin: 0;
    padding: 1em 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

#logo {
    height: 55px;
    margin-right: 32px;
    flex-shrink: 0; /* Evita que el logo se encoja */
}

nav {
    flex: 1; /* Ocupa el espacio restante */
    display: flex;
    justify-content: center; /* Centra la navegación en su espacio */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 32px;
}

nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1.08em;
    letter-spacing: 1px;
    transition: color 0.2s;
}
nav ul li a:hover {
    color: #fdff69;
}

#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 2em 5%;
    box-sizing: border-box;
    margin-top: 0;
    background-image: url('img/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.4) 0%, rgba(61, 10, 24, 0.6) 100%);
    z-index: 1;
}

#hero > * {
    position: relative;
    z-index: 2;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(3em, 6vw, 5em);
    margin-bottom: 0.5em;
    font-family: sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    /* Animación de aparición desde abajo */
    animation: fadeInUp 1.5s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1em, 2vw, 1.4em);
    margin-bottom: 2em;
    line-height: 1.6;
    max-width: 600px;
    color: #f8f9fa;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1.8s ease-out;
}

.hero-text button {
    background-color: #dccb3573;
    border: none;
    padding: 1em 3em;
    color: #FFFFFF;
    font-size: 1.2em;
    font-weight: 600;
    font-family: sans-serif;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background 0.2s, color 0.2s, transform 0.1s;
    margin-left: 0.2em;
    /* Animación de aparición con retraso y pulso sutil */
    animation: fadeInUp 1.5s ease-out 0.5s both, pulse 2s infinite 2s;
}

.hero-text button:hover {
    background-color: #FF4D6D;
    color: #FFFFFF;
    transform: scale(1.04);
    animation-play-state: paused; /* Pausa el pulso al hacer hover */
}

/* Keyframes para las animaciones */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-image {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-image img {
    width: 110%;
    max-width: none;
    min-width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    /* Animación de aparición desde la derecha */
    animation: fadeInRight 1.5s ease-out 0.3s both;
}

@media (max-width: 900px) {
    #hero {
        flex-direction: column;
        padding: 2em 5%;
        text-align: center;
        margin-top: 40px;
    }
    .hero-text, .hero-image {
        align-items: center;
        justify-content: center;
        flex-basis: auto;
        width:100%;
    }
    .hero-text {
        padding-right: 0;
        margin-bottom: 2em;
    }
    .hero-image img {
        width: 80%;
        max-width: 450px;
    }
}

@media (max-width: 700px) {
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.7em 1em;
        width: 96%;
    }
    nav ul {
        gap: 18px;
    }
    #logo {
        margin-bottom: 10px;
    }
    #hero {
        margin-top: 20px;
    }
    .hero-text h1 {
        font-size: 2em;
    }
    .hero-text button {
        font-size: 1em;
        padding: 0.8em 2em;
    }
}

/* Elimina el header fijo anterior */
header {
    display: none;
}

/* Estilos para pantallas más pequeñas */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 10px;
    }

    nav ul li {
        margin-left: 0;
        margin-right: 15px;
    }

    #hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3em;
    }

    .hero-image {
        margin-top: 2em;
        text-align: center; /* Centra la imagen en móviles */
    }
}

/* Estilos generales para las secciones */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

section h2 {
    font-family: sans-serif;
    font-size: 3.2em;
    text-align: center;
    margin-bottom: 60px;
    color: #FFFFFF;
}

section h2 i {
    margin-right: 15px;
    color: #fff569;
}

/* Sección Nosotros */
#nosotros {
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.1) 0%, rgba(93, 15, 37, 0.2) 100%);
    padding: 100px 0;
}

.nosotros-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.nosotros-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.nosotros-text {
    text-align: left;
    padding-right: 40px;
}

.nosotros-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nosotros-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.nosotros-text h3 {
    font-family: sans-serif;
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #fff569;
    line-height: 1.3;
}

.nosotros-text p {
    font-size: 1.1em;
    line-height: 1.75;
    margin-top: 0;
    margin-bottom: 40px;
    color: #FFFFFF;
    opacity: 0.9;
    max-width: 550px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    padding: 20px 15px;
    background: rgba(233, 255, 105, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(228, 255, 105, 0.25);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 105, 135, 0.2);
}

.stat i {
    font-size: 2em;
    color: #FF6987;
    margin-bottom: 10px;
    display: block;
}

.stat .number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 5px;
    font-family: sans-serif;
}

.stat .label {
    font-size: 0.85em;
    color: #CCCCCC;
    font-weight: 500;
    line-height: 1.3;
}

.company-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.highlight-item {
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid #FF6987;
    transition: transform 0.3s ease, background 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

.highlight-item h4 {
    color: #FF6987;
    font-size: 1.2em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-item h4 i {
    font-size: 1.1em;
}

.highlight-item p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95em;
}

/* Why Choose Us Section */
#why-choose-us {
    padding: 80px 0;
    background-color: rgba(61, 10, 24, 0.95);
}

#why-choose-us h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5em;
    color: #FFFFFF;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 105, 135, 0.3);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 105, 135, 0.15);
    box-shadow: 0 20px 40px rgba(196, 30, 58, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #FF6987, #C41E3A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #FFFFFF;
}

.feature-card h3 {
    color: #FFFFFF;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
}

.feature-card p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95em;
}

.nosotros-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nosotros-image img {
    max-width: 150%;
    height: auto;
    border-radius: 20px;
    animation: fadeInRight 1.5s ease-out 0.5s both;
    transition: transform 0.3s ease;
}

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

/* Sección Servicios */
#servicios {
    background: linear-gradient(135deg, rgba(93, 15, 37, 0.2) 0%, rgba(139, 21, 56, 0.1) 50%, rgba(196, 30, 58, 0.05) 100%);
    padding: 80px 0;
}

#servicios .container {
    position: relative;
}

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

.services-subtitle {
    color: #FF6987;
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#servicios h2 {
    color: #FFFFFF;
    font-size: 2.8em;
    font-weight: 300;
    margin: 0;
}

.services-scroll-hint {
    text-align: center;
    color: #FF6987;
    font-size: 0.9em;
    margin-bottom: 20px;
    opacity: 0.8;
}

.services-grid {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    margin-top: 50px;
    padding: 20px 0;
    scroll-behavior: smooth;
    width: 100%;
}

.services-grid::-webkit-scrollbar {
    height: 8px;
}

.services-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.services-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 105, 135, 0.6);
    border-radius: 10px;
}

.services-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 105, 135, 0.8);
}

.service-card {
    background: rgba(255, 105, 135, 0.15);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 105, 135, 0.3);
    min-width: calc((100% - 60px) / 3);
    width: calc((100% - 60px) / 3);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 105, 135, 0.25);
    box-shadow: 0 20px 40px rgba(196, 30, 58, 0.3);
}

.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #FF6987, #C41E3A);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: #ffffff;
}

.service-card h3 {
    font-family: sans-serif;
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-weight: 600;
}

.service-card p {
    line-height: 1.6;
    color: #f8f9fa;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.service-btn {
    background: #FF6987;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

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

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.service-features span {
    font-size: 0.85em;
    color: #FF6987;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Testimonials Section */
#testimonials {
    padding: 80px 0;
    background-color: rgba(61, 10, 24, 0.95);
}

#testimonials h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5em;
    color: #FFFFFF;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    border-left: 4px solid #FF6987;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 105, 135, 0.2);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(196, 30, 58, 0.2);
}

.testimonial-content p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info h4 {
    color: #FFFFFF;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.author-info span {
    color: #FF6987;
    font-size: 0.9em;
}

.company-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6987, #C41E3A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #FFFFFF;
}

.client-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.client-stat {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 105, 135, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #FF6987;
    margin-bottom: 10px;
}

.stat-label {
    color: #e0e0e0;
    font-size: 1em;
    font-weight: 500;
}

/* Sección Contacto */
#contacto {
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.15) 0%, rgba(61, 10, 24, 0.3) 100%);
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: sans-serif;
    font-size: 2em;
    margin-bottom: 20px;
    color: #f5ff69;
}

.contact-info p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #CCCCCC;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.contact-item i {
    font-size: 1.2em;
    color: #ffe969;
    margin-right: 15px;
    width: 20px;
}

.contact-form {
    background: rgba(255, 105, 135, 0.1);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 105, 135, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 105, 135, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-family: sans-serif;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #CCCCCC;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffdc69;
    background: rgba(255, 255, 255, 0.15);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background-color: #ffbe69;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background-color: #ffa34d;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 60px 0 20px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: sans-serif;
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #FF6987;
}

.footer-section h4 {
    font-family: sans-serif;
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.footer-section p {
    line-height: 1.6;
    color: #CCCCCC;
    margin-bottom: 20px;
}

.footer-logo {
    height: 50px; /* Ajusta la altura según necesites */
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
    color: #CCCCCC;
}

.footer-section ul li a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FF6987;
}

.footer-section ul li i {
    margin-right: 10px;
    color: #FF6987;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 105, 135, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #FF6987;
    font-size: 1.2em;
    transition: background 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    background: #FF6987;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.company-details {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 105, 135, 0.2);
}

.company-details p {
    font-size: 0.9em;
    color: #b8b8b8;
    margin-bottom: 5px;
}

.hours-list {
    color: #e0e0e0;
}

.hours-list li {
    padding: 3px 0;
    font-size: 0.9em;
}

.certifications {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 105, 135, 0.2);
}

.certifications h5 {
    color: #FF6987;
    font-size: 1em;
    margin-bottom: 8px;
}

.certifications p {
    font-size: 0.85em;
    color: #b8b8b8;
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 105, 135, 0.2);
    padding-top: 20px;
    text-align: center;
    color: #CCCCCC;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.legal-links {
    font-size: 0.9em;
    color: #b8b8b8;
}

.legal-links span {
    cursor: pointer;
    transition: color 0.2s;
}

.legal-links span:hover {
    color: #FF6987;
}

.company-registration {
    font-size: 0.8em;
    color: #999;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 105, 135, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    #nosotros {
        padding: 80px 0;
    }
    
    .nosotros-content {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 20px;
    }
    
    .nosotros-text {
        text-align: center;
        padding-right: 0;
    }
    
    .nosotros-text h3 {
        font-size: 1.8em;
    }
    
    .nosotros-text p {
        font-size: 1em;
        margin-bottom: 40px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .stat {
        padding: 20px 15px;
    }
    
    .nosotros-image img {
        max-width: 100%;
        border-radius: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 2em;
    }
} 