/* ===========================
   RESET GLOBAL
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===========================
   ESTILOS DEL BODY
   =========================== */
body {
    min-height: 100vh;
    background-color: #000;
    background-image: url("../images/x.png");
    background-size: cover;
    background-repeat: no-repeat;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

main {
    flex: 1;
}

/* ===========================
   CONTENEDOR PRINCIPAL
   =========================== */
#wrapper {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 1200px;
    width: 90%;
}

/* ===========================
   LOGO PRINCIPAL (LETRAS)
   =========================== */
#wrapper #logo {
    /* Tamaño fluido: min 300px, ideal 40vw, max 800px */
    width: clamp(300px, 40vw, 800px);
    height: auto;
    margin: 0 auto 2rem;
    display: block;
}

/* ===========================
   CONTENEDOR DE BOTONES
   =========================== */
#buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Reducido el espaciado entre iconos */
    gap: clamp(1rem, 2vw, 2rem);
    margin-top: 1rem;
}

/* ===========================
   ENLACES
   =========================== */
a.link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .2s ease, opacity .2s ease;
}

a.link:hover,
a.link:focus {
    transform: scale(1.05);
    opacity: 0.85;
}

/* ===========================
   ICONOS
   =========================== */
a.link .icon-image {
    /* Tamaño reducido: min 30px, ideal 3vw, max 50px */
    width: clamp(30px, 3vw, 50px);
    height: clamp(30px, 3vw, 50px);
    object-fit: contain;
    transition: transform .2s ease;
}

/* ===========================
   TÍTULO DE REDES SOCIALES
   =========================== */
.social-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

a.link:hover .icon-image {
    transform: scale(1.1);
}

/* ===========================
   TOOLTIP CUSTOM (más abajo)
   =========================== */
a.link {
    position: relative;
}

/* Texto del tooltip */
a.link::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 1rem);           /* 1rem más abajo que el borde inferior */
    left: 50%;
    transform: translateX(-50%) translateY(-0.5rem);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.875rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

/* Flecha del tooltip */
a.link::before {
    content: "";
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(-0.2rem);
    border-width: 0.4rem;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

/* Mostrar al hover/focus */
a.link:hover::after,
a.link:focus::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
a.link:hover::before,
a.link:focus::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* AI generated */
/* Keep existing reset and base styles */

/* New styles for enhanced layout */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.75rem 1rem;
    z-index: 1000;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/x.png");
    background-size: cover;
    background-position: center;
}

.hero-content {
    color: white;
    padding: 2rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    background: #121212;
    color: #ffffff;
}

/* Elimina por completo cualquier estilo de link en las tarjetas de servicios */
.services a, 
.services a:hover, 
.services a:focus, 
.services a:visited {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
    border-bottom: none !important;
}

.services .service-card h3 {
    border-bottom: none !important;
}

.services .service-card h3:after,
.services .service-card h3:before {
    display: none !important;
}

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

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.service-card i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background: #0a0a0a;
    color: #ffffff;
}

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

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

.feature i {
    font-size: 2.5rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: #121212;
    color: #ffffff;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-details {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-details p {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.social-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #007bff;
    margin: 0.5rem auto 1rem;
}

/* Headings for all sections */
.services h2, .about h2, .contact h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.services h2:after, .about h2:after, .contact h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #007bff;
}

/* Footer */
footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    width: 100%;
    position: relative;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}
/* Estilos para el menú desplegable */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-container img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    margin: 0 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Estilos para el menú desplegable */
.dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
    color: #fff;
    height: 100%;
    margin: 0 1rem;
}

.dropdown-toggle i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(25, 25, 25, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s;
    margin: 0;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.dropdown-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Estilos mejorados para las páginas de servicios */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-hero {
    text-align: center;
    padding: 80px 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.service-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 30px;
}

.service-image-container {
    margin: 40px auto;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.4);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-overview {
    text-align: center;
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.service-overview h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.service-overview p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.brands-container, .expertise-container, .os-container {
    margin: 40px auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brands-container h3, .expertise-container h3, .os-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.brands-grid, .os-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.brand-item, .os-item {
    padding: 15px 25px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    transition: all 0.3s;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-item:hover, .os-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(20, 20, 20, 0.7);
}

.os-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.os-item i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.expertise-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.expertise-list li {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.expertise-list li::before {
    content: "✓";
    margin-right: 10px;
    color: rgba(100, 255, 100, 0.8);
    font-weight: bold;
}

.service-details, .equipment-section, .service-process, 
.battery-symptoms, .service-benefits, .common-problems, 
.faq-section, .testimonials, .cases-section, .tips-section {
    margin: 80px auto;
    max-width: 1000px;
}

.service-details h2, .equipment-section h2, .service-process h2,
.battery-symptoms h2, .service-benefits h2, .common-problems h2,
.faq-section h2, .testimonials h2, .cases-section h2, .tips-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
}

.service-details h2::after, .equipment-section h2::after, .service-process h2::after,
.battery-symptoms h2::after, .service-benefits h2::after, .common-problems h2::after,
.faq-section h2::after, .testimonials h2::after, .cases-section h2::after, .tips-section h2::after {
    display: none;
}

.service-features, .equipment-grid, .benefits-grid, 
.problems-grid, .symptoms-grid, .tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature, .equipment-item, .benefit-item, 
.problem-item, .symptom-item, .tip-item {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature:hover, .equipment-item:hover, .benefit-item:hover, 
.problem-item:hover, .symptom-item:hover, .tip-item:hover {
    transform: translateY(-5px);
    background-color: rgba(20, 20, 20, 0.7);
}

.feature i, .equipment-item i, .benefit-item i, 
.problem-item i, .symptom-item i, .tip-item i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.feature h3, .equipment-item h3, .benefit-item h3, 
.problem-item h3, .symptom-item h3, .tip-item h3 {
    margin-bottom: 15px;
    color: #ffffff;
}

.feature p, .equipment-item p, .benefit-item p, 
.problem-item p, .symptom-item p, .tip-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.step {
    display: flex;
    background-color: rgba(25, 25, 25, 0.7);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.step-number {
    background-color: rgba(33, 150, 243, 0.8);
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    padding: 20px 30px;
    flex: 1;
}

.step h3 {
    color: #fff;
    margin-bottom: 10px;
}

.step p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.faq-container {
    margin-top: 40px;
}

.faq-item {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    padding: 20px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.testimonials-container, .cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial, .case-item {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial blockquote {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin: 20px 0;
    line-height: 1.6;
}

.testimonial cite {
    font-style: normal;
    font-weight: bold;
    color: #ffffff;
}

.case-item h3 {
    color: #ffffff;
    margin: 15px 0;
}

.case-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 60px 30px;
    border-radius: 8px;
    margin: 80px auto;
    max-width: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: rgba(50, 50, 50, 0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    background-color: rgba(70, 70, 70, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Estilos del footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p, .footer-section a {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

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

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

.footer-section a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #2196F3;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Media queries para responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links {
        margin-top: 1rem;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0.5rem;
    }
    
    .nav-links a {
        margin: 0.3rem 0;
        padding: 0.5rem;
    }
    
    .dropdown-toggle {
        margin: 0.3rem 0;
        padding: 0.5rem;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: auto;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        display: none;
        border: none;
        background-color: rgba(40, 40, 40, 0.5);
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 0.8rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-container {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    #logo {
        height: 30px;
    }
    
    .nav-links {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-links a {
        margin-left: 0;
        font-size: 0.9rem;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
    }
}


/* WHATSAPP FLOATING BUTTON */

.float{
    position:fixed;
    width:60px;
    height:60px;
    bottom:40px;
    right:40px;
    background-color:#25d366;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    font-size:30px;
    box-shadow: 2px 2px 3px #999;
    z-index:100;
}

.my-float{
    margin-top:16px;
}