/* ==========================================
   AIRE ACONDICIONADO EXPERTOS - CSS PRINCIPAL
   aireacondicionadoexpertos.cl
   ========================================== */

/* Reset y base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0077B6;
    display: flex;
    align-items: center;
}

.logo a img {
    height: 48px;
    width: auto;
    display: block;
}

/* Navegación Desktop */
.nav-desktop {
    display: block;
}

.nav-menu-desktop {
    display: flex;
    gap: 30px;
}

.nav-menu-desktop li a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.nav-menu-desktop li a:hover {
    color: #0077B6;
}

.btn-agenda-desktop {
    background-color: #0077B6;
    color: #fff;
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.btn-agenda-desktop:hover {
    background-color: #005f8f;
}

/* Menú Hamburguesa */
.menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-icon-line {
    width: 28px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* Navegación Móvil */
.nav-mobile {
    display: none;
    background-color: #fff;
    padding: 0 20px 20px;
}

.nav-mobile.active {
    display: block;
}

.nav-menu-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-menu-mobile li a {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.nav-menu-mobile li a:hover {
    color: #0077B6;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(rgba(0,30,60,0.65), rgba(0,119,182,0.7)), url('../img/header.jpg') center center / cover no-repeat;
    padding: 160px 20px 100px;
    text-align: center;
    color: #fff;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.subheading {
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.8;
}

.buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-block;
    letter-spacing: 0.5px;
}

.btn.primary {
    background-color: #fff;
    color: #0077B6;
}

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

.btn.secondary {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn.secondary:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #0077B6;
    margin-bottom: 50px;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-box {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #0077B6;
}

.service-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.service-content {
    padding: 25px;
}

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

.service-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0077B6;
    margin-bottom: 15px;
}

.service-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* Colores variados para bordes */
.service-box.service-1 { border-top-color: #0077B6; }
.service-box.service-2 { border-top-color: #00B4D8; }
.service-box.service-3 { border-top-color: #0096C7; }
.service-box.service-4 { border-top-color: #48CAE4; }
.service-box.service-5 { border-top-color: #023E8A; }
.service-box.service-6 { border-top-color: #0077B6; }

/* Imágenes de servicio — posición ajustada a la parte más representativa */
.service-box.service-1 .service-img { object-position: center 30%; }
.service-box.service-2 .service-img { object-position: center 20%; }
.service-box.service-3 .service-img { object-position: center 40%; }
.service-box.service-4 .service-img { object-position: center 30%; }
.service-box.service-5 .service-img { object-position: center 40%; }
.service-box.service-6 .service-img { object-position: center 50%; }

/* ==========================================
   EXPERTS SECTION
   ========================================== */
.experts {
    padding: 80px 20px;
    background: linear-gradient(135deg, #023E8A 0%, #0077B6 100%);
    color: #fff;
}

.experts-content {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.experts-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.experts-description {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.stats-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-box {
    text-align: center;
    padding: 25px 15px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    padding: 60px 20px;
    background-color: #fff;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background-color: #0077B6;
    color: #fff;
    padding: 14px 40px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: #005f8f;
    transform: translateY(-2px);
}

/* ==========================================
   TABS SECTION
   ========================================== */
.tabs-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-us {
    width: 100%;
}

.tabs-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    border: 2px solid #0077B6;
    background-color: transparent;
    color: #0077B6;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button:hover,
.tab-button.active {
    background-color: #0077B6;
    color: #fff;
}

.tabs-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content ul {
    list-style: disc;
    padding-left: 20px;
}

.tab-content ul li {
    padding: 10px 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.tab-content ul li:last-child {
    border-bottom: none;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: 80px 20px;
    background-color: #fff;
}

.contact-section {
    max-width: 1100px;
    margin: 0 auto;
}

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

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0077B6;
    margin-bottom: 30px;
}

.contact-info ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info ul li div strong {
    display: block;
    font-weight: 600;
    color: #333;
}

.contact-info ul li div p {
    color: #666;
    font-size: 0.95rem;
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    min-height: 300px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-map iframe {
    display: block;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: #1a1a2e;
    color: #ccc;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-menu li,
.footer-contact li,
.footer-payment li {
    padding: 6px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-menu li a:hover {
    color: #00B4D8;
}

.footer-contact span {
    color: #ccc;
}

.footer-credits {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-credits p {
    font-size: 0.85rem;
    color: #888;
}

/* ==========================================
   DASHICONS (iconos simples con CSS)
   ========================================== */
.dashicons {
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
}

.dashicons-yes::before { content: "✓"; color: #0077B6; font-weight: bold; }
.dashicons-phone::before { content: "📞"; }
.dashicons-email::before { content: "✉️"; }
.dashicons-admin-home::before { content: "🏠"; }
.dashicons-hammer::before { content: "🔧"; }
.dashicons-awards::before { content: "🏆"; }
.dashicons-portfolio::before { content: "💳"; }
.dashicons-money::before { content: "💵"; }
.dashicons-admin-network::before { content: "🏦"; }

/* ==========================================
   BOTONES FLOTANTES (WhatsApp y Teléfono)
   ========================================== */
.contact-button {
    position: fixed;
    bottom: 120px;
    left: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.3s;
}

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

#phone-button {
    background-color: #0077B6;
    bottom: 40px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 992px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .btn-agenda-desktop {
        display: none;
    }

    .menu-icon {
        display: flex;
    }

    .hero {
        padding: 130px 20px 70px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 250px;
    }

    .tabs-menu {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .experts-title {
        font-size: 1.5rem;
    }

    .cta-text {
        font-size: 1.3rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-button {
        width: 50px;
        height: 50px;
    }

    #phone-button {
        bottom: 30px;
    }
    
    .contact-button {
        bottom: 100px;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}
