/* ============================================
   aire-acondicionado.css
   Estilos específicos para aire-acondicionado.html
   Depende de variables de common.css / light.css / dark.css
   ============================================ */

/* ===== BREADCRUMB ===== */
.ac-breadcrumb {
    max-width: 1100px;
    margin: 18px auto 0;
    padding: 0 20px;
    font-size: 14px;
    color: var(--text);
    opacity: 0.8;
}
.ac-breadcrumb a { color: var(--primary); text-decoration: none; }
.ac-breadcrumb a:hover { text-decoration: underline; }
.ac-breadcrumb .current { font-weight: 700; }

/* ===== HERO ===== */
.ac-hero {
    max-width: 1200px;
    margin: 30px auto 10px;
    padding: 20px 20px 10px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.ac-eyebrow {
    display: inline-block;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.ac-hero-content h1 {
    font-size: 44px;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--primary);
}

.ac-hero-lead {
    font-size: 17px;
    max-width: 520px;
    margin-bottom: 26px;
}

.ac-hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ac-stat {
    display: flex;
    flex-direction: column;
}

.ac-stat-num, .ac-stat-suffix {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    display: inline-block;
}

.ac-stat-label {
    font-size: 13px;
    opacity: 0.75;
    margin-top: 2px;
}

.ac-hero-cta {
    font-weight: 700;
}

/* ===== DIAGRAMA CICLO DE REFRIGERACIÓN (elemento distintivo) ===== */
.ac-cycle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.ac-cycle-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
    overflow: visible;
}

.ac-cycle-track {
    fill: none;
    stroke: color-mix(in srgb, var(--primary) 18%, transparent);
    stroke-width: 3;
}

.ac-cycle-flow {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 60 682;
    animation: ac-flow 5s linear infinite;
}

@keyframes ac-flow {
    to { stroke-dashoffset: -742; }
}

.ac-node circle {
    fill: var(--muted-bg);
    stroke: var(--primary);
    stroke-width: 2.5;
}

.ac-node text {
    text-anchor: middle;
    font-size: 26px;
}

.ac-cycle-labels {
    list-style: none;
    font-size: 13.5px;
    color: var(--text);
    text-align: left;
    max-width: 320px;
}

.ac-cycle-labels li {
    padding: 3px 0;
}

.ac-cycle-labels strong {
    color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
    .ac-cycle-flow { animation: none; }
}

/* ===== SERVICIOS DETALLADOS ===== */
.ac-services {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.ac-services h2 {
    color: var(--primary);
    font-size: 30px;
    margin-bottom: 10px;
}

.ac-services-lead {
    max-width: 640px;
    margin: 0 auto 30px;
    opacity: 0.85;
}

.ac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    text-align: left;
}

.ac-card {
    background: var(--card-bg);
    color: var(--card-text);
    border-radius: 14px;
    padding: 26px 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.ac-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ac-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.ac-card-icon {
    font-size: 30px;
    margin-bottom: 12px;
}

.ac-card h3 {
    color: var(--service-title);
    font-size: 18px;
    margin-bottom: 8px;
}

.ac-card p {
    font-size: 14.5px;
    opacity: 0.9;
}

/* ===== FAQ / ACORDEÓN ===== */
.ac-faq {
    max-width: 850px;
    margin: 50px auto;
    padding: 0 20px;
}

.ac-faq h2 {
    text-align: center;
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 24px;
}

.ac-accordion-item {
    border-bottom: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
}

.ac-accordion-trigger {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    padding: 18px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
}

.ac-accordion-icon {
    font-size: 20px;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}

.ac-accordion-trigger[aria-expanded="true"] .ac-accordion-icon {
    transform: rotate(45deg);
}

.ac-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 4px;
}

.ac-accordion-panel p {
    padding-bottom: 18px;
    font-size: 15px;
    opacity: 0.9;
}

/* ===== OPINIONES ===== */
.ac-reviews {
    max-width: 1000px;
    margin: 50px auto;
    padding: 40px 20px;
    text-align: center;
    background: var(--muted-bg);
    border-radius: 18px;
}

.ac-reviews h2 {
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 20px;
}

.ac-reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.ac-reviews-score {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
}

.ac-reviews-stars {
    color: #f5b400;
    font-size: 20px;
    letter-spacing: 2px;
}

.ac-reviews-carousel {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 700px;
    margin: 0 auto;
}

.ac-review-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 150px;
}

.ac-review-card {
    display: none;
    background: var(--card-bg);
    color: var(--card-text);
    border-radius: 12px;
    padding: 24px;
    font-style: italic;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    animation: ac-fade 0.5s ease;
}

.ac-review-card.active { display: block; }

@keyframes ac-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ac-review-card footer {
    margin-top: 12px;
    font-style: normal;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--primary);
}

.ac-review-nav {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.ac-review-nav:hover { transform: scale(1.1); }

.ac-review-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.ac-review-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 30%, transparent);
    border: none;
    cursor: pointer;
    padding: 0;
}

.ac-review-dot.active {
    background: var(--primary);
}

.ac-reviews-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.ac-reviews-link:hover { text-decoration: underline; }

/* ===== CTA FINAL ===== */
.ac-cta {
    text-align: center;
    padding: 50px 20px 70px;
    max-width: 700px;
    margin: 0 auto;
}

.ac-cta h2 {
    color: var(--primary);
    font-size: 26px;
    margin-bottom: 12px;
}

.ac-cta p {
    margin-bottom: 22px;
    opacity: 0.9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .ac-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ac-hero-lead { margin-left: auto; margin-right: auto; }
    .ac-hero-stats { justify-content: center; }
    .ac-cycle-labels { text-align: left; margin: 0 auto; }
}

@media (max-width: 480px) {
    .ac-hero-content h1 { font-size: 32px; }
    .ac-reviews-carousel { flex-direction: column; }
    .ac-review-nav { display: none; }
}

.ac-review-card footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.ac-review-card footer img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.ac-review-card footer span,
.ac-review-card footer small { display: block; }
.ac-review-card footer small { color: #f5a900; margin-top: 2px; }
.ac-review-loading,
.ac-review-error { padding: 42px 20px; opacity: .72; }
