:root {
    --brand: #074f78;
    --brand-dark: #12364f;
    --accent: #0d8f83;
    --warm: #8a7663;
    --ink: #1f2933;
    --muted: #667085;
    --line: #d7dee8;
    --bg: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 12px 28px rgba(31, 41, 51, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

img,
video {
    max-width: 100%;
}

a {
    color: inherit;
}

.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-content {
    width: min(1180px, calc(100% - 32px));
    min-height: 112px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-link img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}


.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex-wrap: wrap;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 800;
    font-size: 14px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

section {
    padding: 64px 20px;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #d8f4ee;
}

h1,
h2,
h3 {
    line-height: 1.16;
}

h1 {
    font-size: 44px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 20px;
}

p {
    color: inherit;
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 18px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary,
button {
    color: var(--white);
    background-color: var(--brand);
}

.btn-primary:hover,
button:hover {
    background-color: var(--brand-dark);
}

.btn-secondary {
    color: var(--white);
    background-color: var(--warm);
}

.btn-secondary:hover {
    background-color: #745f4f;
}

.btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.82);
    background-color: transparent;
}

.btn-outline:hover {
    color: var(--brand-dark);
    background-color: var(--white);
}

.btn-light {
    color: var(--brand-dark);
    background-color: var(--white);
}

.btn-light:hover {
    color: var(--white);
    background-color: var(--brand-dark);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 5px;
    border-color: var(--line);
    color: var(--brand-dark);
    background-color: var(--white);
}

.nav-toggle:hover {
    color: var(--brand);
    border-color: var(--brand);
    background-color: #eef6f9;
}

.nav-toggle:focus-visible {
    outline: 3px solid rgba(13, 143, 131, 0.28);
    outline-offset: 3px;
}

.nav-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background-color: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
    background-color: var(--white);
}

textarea {
    resize: vertical;
}

.hero-video-section {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 78px 20px;
}

.hero-video-section video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-video-section::before,
.page-hero::before,
.actas-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(18, 54, 79, 0.58);
    z-index: -1;
}

.hero-content-overlay {
    width: min(760px, calc(100% - 24px));
    margin-left: max(0px, calc((100% - 1180px) / 2));
    color: var(--white);
}

.hero-content-overlay h1 {
    max-width: 720px;
    margin-bottom: 18px;
}

.hero-content-overlay p {
    max-width: 620px;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.metrics-strip {
    width: min(1180px, calc(100% - 32px));
    margin: -34px auto 0;
    padding: 0;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.metrics-strip article {
    min-height: 110px;
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.metrics-strip strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand);
    font-size: 19px;
}

.metrics-strip span {
    color: var(--muted);
}

.section-block {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.service-card h3,
.service-card p,
.value-card h3,
.value-card p {
    padding-left: 18px;
    padding-right: 18px;
}

.service-card h3,
.value-card h3 {
    padding-top: 18px;
    margin-bottom: 8px;
    color: var(--brand);
}

.service-card p,
.value-card p {
    padding-bottom: 20px;
    color: var(--muted);
}

.split-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
    gap: 32px;
    align-items: center;
}

.split-copy {
    display: grid;
    gap: 16px;
}

.split-copy p {
    color: var(--muted);
}

.split-section img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.team-section {
    padding-top: 34px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.team-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.team-card:only-child {
    grid-column: 1 / -1;
    width: min(380px, 100%);
    justify-self: center;
}

.team-photo {
    min-height: 290px;
    padding: 22px 18px 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 1px solid var(--line);
    background-color: #edf6f8;
}

.team-photo img {
    width: min(270px, 100%);
    height: 290px;
    display: block;
    object-fit: contain;
    object-position: center bottom;
}

.team-card-content {
    padding: 22px;
    display: grid;
    gap: 12px;
}

.team-card-content h3 {
    color: var(--brand);
    font-size: 22px;
}

.team-role {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.team-card-content p {
    color: var(--muted);
}

.actas-preview,
.cta-band {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 64px;
    padding: 32px;
    border-radius: 8px;
    color: var(--white);
    background-color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.actas-preview {
    display: flex;
}

.actas-preview h2,
.cta-band h2 {
    max-width: 720px;
}

.page-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.page-hero>div {
    width: min(760px, calc(100% - 32px));
    margin-left: max(0px, calc((100% - 1180px) / 2));
}

.page-hero h1,
.page-hero p {
    max-width: 740px;
}

.page-hero p {
    margin-top: 12px;
    font-size: 18px;
}

.services-hero {
    background-image: url("./assets/img-edificios/Edificios en la ciudad _ Foto Premium_files/rascacielos-modernos-distrito-negocios_23-2148836770.jpg");
}

.about-hero {
    background-image: url("./assets/img-edificios/Edificios\ en\ la\ ciudad\ _\ Foto\ Premium_files/vista-angulo-edificio-contra-cielo_1048944-20421423.jpg");
}

.contact-hero {
    background-image: url("./assets/img-edificios/Edificios en la ciudad _ Foto Premium_files/edificio-negocios-moderno-puesta-sol-noche_181624-12385.jpg");
}

.process-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.process-list article {
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.process-list span {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--accent);
    font-weight: 900;
}

.process-list h3 {
    color: var(--brand);
    margin-bottom: 8px;
}

.process-list p {
    color: var(--muted);
}

.values-section {
    padding-top: 34px;
}

.value-card {
    padding-top: 4px;
}

.contact-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: start;
}

.contact-card,
.contact-form {
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.contact-card h2 {
    color: var(--brand);
    margin-bottom: 16px;
}

.contact-card p {
    margin-bottom: 12px;
    color: var(--muted);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-weight: 800;
}

.actas-section {
    position: relative;
    min-height: 66vh;
    display: flex;
    align-items: center;
    background-image: url("./assets/img-edificios/Edificios\ en\ la\ ciudad\ _\ Foto\ Premium_files/edificio-fachada_1048944-12727555.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.actas-content {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.acta-option {
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.acta-option h1 {
    margin-bottom: 20px;
    color: var(--warm);
    font-size: 32px;
}

.acta-option label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

.acta-option input {
    margin-bottom: 18px;
}

.acta-option button {
    width: 100%;
    background-color: var(--warm);
}

.acta-option button:hover {
    background-color: #745f4f;
}

.acta-option button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.acta-status {
    min-height: 24px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

.acta-status strong,
.acta-status span {
    display: block;
}

.acta-status.success {
    color: var(--brand-dark);
}

.acta-status.error {
    color: #a83232;
}

.acta-status textarea {
    margin-top: 12px;
    resize: vertical;
    background-color: rgba(255, 255, 255, 0.86);
}

.acta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.acta-actions .acta-download {
    width: auto;
    min-height: 38px;
    padding: 0 12px;
    background-color: var(--brand);
}

.acta-actions .acta-download:hover {
    background-color: var(--brand-dark);
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.site-footer {
    background-color: var(--brand-dark);
    color: var(--white);
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    gap: 30px;
}

.footer-info {
    min-width: 0;
}

.footer-info h2 {
    margin-bottom: 12px;
    font-size: 18px;
}

.footer-info p,
.footer-info a {
    display: block;
    color: #dbe8ef;
    text-decoration: none;
    margin-bottom: 6px;
}

.footer-info a:hover {
    color: var(--white);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .site-header {
        position: relative;
        z-index: 20;
    }

    .header-content {
        position: relative;
        min-height: 88px;
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: min(330px, calc(100vw - 32px));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px) scale(0.98);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .site-header.menu-open .main-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .main-nav ul {
        display: grid;
        justify-content: stretch;
        gap: 6px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background-color: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav a {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        padding: 0 14px;
        border-bottom: 0;
        border-left: 3px solid transparent;
        border-radius: 6px;
        font-size: 14px;
    }

    .main-nav a:hover,
    .main-nav a.active {
        border-bottom-color: transparent;
        border-left-color: var(--brand);
        background-color: #edf6f8;
    }

    h1 {
        font-size: 36px;
    }

    .metrics-strip,
    .process-list,
    .split-section,
    .contact-section,
    .actas-content {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metrics-strip {
        margin-top: 16px;
    }

    /*.actas-preview,
    .cta-band {
        display: grid;
    }*/

    .cta-band {
        display: grid;
    }

    .site-footer {
        display: flex;
        flex-direction: column;
        align-items: start;
    }
}

/* ============================= */
/* TRANSCRIPCION EN VIVO - TABS  */
/* ============================= */
.tab-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--line);
    padding-bottom: 0;
}

.tab-btn {
    padding: 10px 20px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    min-height: 44px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--brand);
    background: #eef6f9;
}

.tab-btn.active {
    color: var(--brand);
    background: var(--white);
    border-color: var(--line);
    position: relative;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--white);
}

.tab-content {
    display: none;
}

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

/* Live transcription */
.live-section {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.live-header h2 {
    color: var(--brand);
    font-size: 22px;
}

.live-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.live-controls .btn-record {
    background: #e74c3c;
    color: var(--white);
}

.live-controls .btn-record:hover {
    background: #c0392b;
}

.live-controls .btn-record.recording {
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(231,76,60,0.5); }
    70% { box-shadow: 0 0 0 12px rgba(231,76,60,0); }
    100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}

.live-controls .btn-stop {
    background: var(--muted);
    color: var(--white);
}

.live-controls .btn-stop:hover {
    background: #4a5568;
}

.live-transcription-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.live-transcription-box,
.live-notes-box {
    min-height: 200px;
}

.live-transcription-box label,
.live-notes-box label {
    display: block;
    font-weight: 800;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-transcription-box textarea,
.live-notes-box textarea {
    width: 100%;
    min-height: 200px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
}

.live-transcription-box textarea {
    background: #fafbfc;
}

.live-notes-box textarea {
    background: #fffdf7;
}

.live-status {
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--bg);
}

.live-status.recording {
    color: #e74c3c;
    background: #fef2f2;
}

.live-status.connected {
    color: var(--accent);
    background: #eefaf8;
}

/* QR section */
.live-qr-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    padding: 20px;
    background: var(--bg);
    border-radius: 8px;
    flex-wrap: wrap;
}

.live-qr-section img {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    background: var(--white);
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.live-qr-info h3 {
    color: var(--brand);
    font-size: 16px;
    margin-bottom: 4px;
}

.live-qr-info p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.live-qr-info .phone-count {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

/* Acta form */
.acta-form-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.acta-form-section h3 {
    color: var(--brand);
    font-size: 18px;
    margin-bottom: 16px;
}

.acta-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.acta-form-grid .full-width {
    grid-column: 1 / -1;
}

.acta-form-grid label {
    display: block;
    font-weight: 800;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.acta-form-grid input,
.acta-form-grid select,
.acta-form-grid textarea {
    width: 100%;
    min-height: 40px;
    font-size: 14px;
}

.acta-form-grid textarea {
    min-height: 80px;
}

.acta-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.acta-form-actions .btn-gen {
    background: var(--brand);
    color: var(--white);
}

.acta-form-actions .btn-gen:hover {
    background: var(--brand-dark);
}

.acta-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    background: #eefaf8;
    border: 1px solid var(--accent);
    display: none;
}

.acta-result.show {
    display: block;
}

.acta-result h4 {
    color: var(--accent);
    margin-bottom: 8px;
}

.acta-result .acta-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Phone mode toggle on same device */
.live-device-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.live-device-toggle button {
    font-size: 12px;
    padding: 6px 14px;
    min-height: 34px;
    background: var(--bg);
    color: var(--muted);
    border: 1px solid var(--line);
}

.live-device-toggle button.active {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

@media (max-width: 900px) {
    .live-transcription-area {
        grid-template-columns: 1fr;
    }
    .acta-form-grid {
        grid-template-columns: 1fr;
    }
    .live-qr-section {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 560px) {
    section {
        padding: 44px 16px;
    }

    .header-content {
        min-height: 78px;
    }

    .brand-link img {
        width: 82px;
        height: 82px;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
    }

    .main-nav {
        top: calc(100% + 6px);
        width: min(300px, calc(100vw - 32px));
    }

    .main-nav ul {
        gap: 6px;
        padding: 10px;
    }

    .main-nav a {
        min-height: 44px;
        padding: 0 12px;
        font-size: 13px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-photo {
        min-height: 250px;
    }

    .team-photo img {
        height: 250px;
    }

    .team-card-content {
        padding: 18px;
    }

    h1 {
        font-size: 31px;
    }

    h2 {
        font-size: 25px;
    }

    .hero-video-section {
        min-height: 620px;
        padding-top: 58px;
        align-items: flex-end;
    }

    .hero-content-overlay p,
    .page-hero p {
        font-size: 16px;
    }
}

.hidden,
.main-nav li.hidden,
.footer-info a.hidden {
    display: none !important;
}