@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

•, •::before, •::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --atx-pure-white: #ffffff;
    --atx-brand-dark-gray: #282828;
    --atx-brand-dark-red: #c00a20;
    --atx-brand-red: #f50f2d;
    --atx-text-dark: #121214;
    --atx-text-light: #ffffff;
    --atx-muted-dark: #585860;
    --atx-muted-light: #d7d7d7;
    --atx-card-white-bg: #f5f5f5;
    --atx-border-light: rgba(255,255,255,0.15);
    --atx-border-dark: rgba(0,0,0,0.08);
    --atx-font: 'Inter', sans-serif;
}

html {
    scroll-behavior: auto; /* Control de suavizado a través de JS */
}

body {
    font-family: var(--atx-font);
    background-color: var(--atx-pure-white);
    color: var(--atx-text-dark);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 16px;
    text-align: justify;
}

.atx-padding-section {
    padding: 120px 0 100px 0;
}

.atx-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.atx-bg-white {
    background-color: var(--atx-pure-white);
    color: var(--atx-text-dark);
}

.atx-bg-red {
    background-color: var(--atx-brand-dark-gray);
    color: var(--atx-text-light);
}

.text-accent-red {
    color: var(--atx-brand-dark-gray);
    font-weight: 700;
}

.text-accent-white {
    color: var(--atx-pure-white);
    font-weight: 700;
}

.text-white-muted {
    color: var(--atx-muted-light);
}

.text-white {
    color: var(--atx-pure-white) !important;
}

.text-center {
    text-align: center;
}

.atx-section-title {
    font-size: 38px;
    line-height: 1.25;
    margin-bottom: 22px;
    letter-spacing: -1px;
}

.atx-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.atx-center-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 60px auto;
}

/* Intersección Scroll Zoom-In + Fade-In */
.atx-animate-zoom {
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.atx-animate-zoom.animated {
    opacity: 1;
    transform: scale(1);
}

/* Switcher de Idiomas */
.atx-lang-switcher {
    position: fixed;
    top: 25px;
    right: 20px;
    z-index: 1100;
    background-color: rgba(0,0,0,0.8);
    padding: 4px;
    border-radius: 6px;
}

.atx-lang-switcher button {
    background: transparent;
    border: none;
    color: #888;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.atx-lang-switcher button.active, .atx-lang-switcher button:hover {
    color: var(--atx-pure-white);
    background-color: var(--atx-brand-red);
}

/* Header */
.atx-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--atx-border-dark);
    box-shadow: 0 4px 25px rgba(0,0,0,0.03);
}

.atx-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.atx-logo a {
    display: flex;
    align-items: center;
}

#atx-main-logo {
    height: 52px;
    width: auto;
    display: block;
}

.atx-nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.atx-nav a {
    color: var(--atx-text-dark);
    text-decoration: none;
    margin: 0 4px;
    padding: 8px 14px; 
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px; 
    transition: all 0.3s ease;
}

.atx-nav a:hover,
.atx-nav a.active {
    background-color: var(--atx-brand-red);
    color: var(--atx-pure-white) !important;
}

.atx-home-button-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 60px;
}

.atx-home-link {
    color: var(--atx-text-dark);
    font-size: 19px;
    transition: color 0.3s;
}

.atx-home-link:hover {
    color: var(--atx-brand-red);
}

/* Hero Section */
.atx-hero-section {
    padding: 190px 0 130px 0;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: #000;
}

.atx-video-bg-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.atx-hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.atx-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(60, 60, 60, 0.25), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.atx-hero-content {
    position: relative;
    z-index: 10;
}

.atx-hero-content h1 {
    font-size: 46px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--atx-text-light);
    margin-bottom: 26px;
    letter-spacing: -1.5px;
}

.atx-hero-content p {
    font-size: 19px;
    color: var(--atx-text-light);
    opacity: 0.95;
    margin-bottom: 42px;
    max-width: 900px;
}

/* Botones */
.atx-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    margin-right: 14px;
    transition: all 0.3s ease;
}

.atx-btn-white {
    background-color: var(--atx-pure-white);
    color: var(--atx-brand-dark-gray);
    border: 1px solid var(--atx-pure-white);
}

.atx-btn-white:hover {
    background-color: #f0f0f5;
    transform: translateY(-2px);
}

.atx-btn-outline-white {
    background-color: transparent;
    color: var(--atx-pure-white);
    border: 1px solid var(--atx-pure-white);
}

.atx-btn-outline-white:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.atx-btn-large-mail {
    padding: 16px 40px;
    font-size: 15px;
}

.atx-btn-large-mail:hover {
    background-color: var(--atx-brand-red);
    color: var(--atx-pure-white);
    border-color: var(--atx-brand-red);
    transform: translateY(-2px);
}

/* Grids */
.atx-grid-2 {
    display: flex;
    gap: 40px;
}

.atx-grid-block {
    flex: 1;
}

.atx-features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.atx-feature-item {
    display: flex;
    align-items: center;
    padding: 24px;
    background-color: var(--atx-card-white-bg);
    border-radius: 8px;
}

.atx-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 24px;
}

.atx-icon-wrap.icon-red {
    background-color: rgba(40,40,40,1);
    color: var(--atx-brand-red);
}

.atx-feature-text {
    font-size: 15px;
    font-weight: 500;
}

/* Modelo */
.atx-steps-grid {
    display: flex;
    gap: 20px;
}

.atx-step-card {
    flex: 1;
    padding: 40px 22px;
    border-radius: 8px;
    position: relative;
    text-align: center;
    transition: transform 0.3s;
}

.bg-red-card {
    background-color: var(--atx-brand-red);
    border: 1px solid var(--atx-border-light);
    color: var(--atx-text-light);
}

.atx-step-card:hover {
    transform: translateY(-6px);
}

.atx-step-icon {
    font-size: 44px;
    margin: 0 auto 24px auto;
    display: block;
    text-align: center;
}

.atx-step-card h3 {
    font-size: 20px;
    margin-bottom: 14px;
    font-weight: 600;
}

.atx-step-card p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
}

/* Módulos */
.atx-module-split {
    display: flex;
    align-items: center;
    gap: 5%;
}

.atx-module-text-block {
    flex: 1.2;
}

.atx-module-visual-block {
    flex: 0.8;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.bg-light-visual {
    background-color: transparent;
}

.bg-dark-visual {
    background-color: transparent;
}

.img-reverse {
    flex-direction: row-reverse;
}

.atx-mod-icon-large {
    font-size: 42px;
    margin-bottom: 16px;
}

.color-red {
    color: var(--atx-brand-red);
}

.color-white {
    color: var(--atx-pure-white);
}

.atx-mod-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.atx-mod-extended-desc {
    font-size: 15px;
    margin-bottom: 24px;
    opacity: 0.85;
}

.atx-bullets-extended {
    list-style: none;
}

.atx-bullets-extended li {
    font-size: 14.5px;
    margin-bottom: 12px;
    font-weight: 500;
}

.font-white-bullets li {
    color: var(--atx-pure-white);
}

.atx-mod-graphic {
    max-width: 100%;
    height: auto;
}

/* Overview y Video Centrado Grande */
.atx-border-top-grey {
    border-top: 1px solid var(--atx-border-dark);
}

.atx-arch-video-block {
    width: 66.66%;
    margin: 0 auto;
}

.atx-arch-render {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 12px 45px rgba(0,0,0,0.08);
    display: block;
}

/* Nueva Sección de Playlist de YouTube en Arquitectura */
.atx-playlist-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.atx-playlist-player-col {
    flex: 1.8;
}

.atx-playlist-current-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--atx-text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: left;
}

.atx-youtube-embed-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Relación 16:9 */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.atx-youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.atx-playlist-sidebar-col {
    flex: 1.2;
    background-color: var(--atx-pure-white);
    border: 1px solid var(--atx-border-dark);
    border-radius: 8px;
    overflow: hidden;
    max-height: 550px;
    display: flex;
    flex-direction: column;
}

.atx-playlist-sidebar-header {
    background-color: var(--atx-brand-dark-gray);
    color: var(--atx-pure-white);
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}

.atx-playlist-items {
    overflow-y: auto;
    flex-grow: 1;
}

.atx-playlist-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--atx-border-dark);
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: left;
}

.atx-playlist-item:last-child {
    border-bottom: none;
}

.atx-playlist-item:hover {
    background-color: #f9f9fb;
}

.atx-playlist-item.active {
    background-color: rgba(245, 15, 45, 0.08);
    border-left: 4px solid var(--atx-brand-red);
    padding-left: 11px; /* Ajuste para compensar el borde izquierdo */
}

.atx-playlist-thumb {
    width: 100px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #ddd;
    flex-shrink: 0;
}

.atx-playlist-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.atx-playlist-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--atx-text-dark);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.atx-playlist-item-duration {
    font-size: 11px;
    color: var(--atx-muted-dark);
    font-weight: 500;
}

/* Diagramas Fluidos */
.atx-architecture-diagrams-sub {
    width: 100%;
    margin: 60px 0;
    text-align: center;
}

.atx-diagram-img-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#atx-architecture-fluid-img {
    width: 100%;
    max-width: 1364px;
    height: auto;
    aspect-ratio: 1364 / 609;
    object-fit: contain;
}

/* Cajas de Beneficios */
.atx-benefits-grid {
    display: flex;
    gap: 20px;
}

.atx-benefit-card {
    flex: 1;
    padding: 40px 20px;
    background-color: rgba(255,255,255,0.08);
    border: 1px solid var(--atx-border-light);
    border-radius: 8px;
    text-align: center;
}

.atx-benefit-icon {
    font-size: 40px;
    margin: 0 auto 22px auto;
    display: block;
    color: var(--atx-pure-white);
}

.atx-benefit-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

.atx-benefit-card p {
    font-size: 13.5px;
    opacity: 0.85;
    line-height: 1.5;
}

/* Contacto y Footer */
.atx-bg-contact-dark {
    background-color: #121214;
    color: var(--atx-text-light);
}

.atx-contact-center-box {
    max-width: 800px;
    margin: 0 auto;
}

.atx-contact-action-wrap {
    margin-top: 40px;
}

.atx-bg-brand-red-footer {
    background-color: var(--atx-brand-red);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.atx-footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

#atx-footer-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* Adaptación Responsiva */
@media(max-width: 991px) {
    .atx-grid-2, .atx-module-split, .atx-steps-grid, .atx-benefits-grid {
        flex-direction: column !important;
        gap: 30px;
    }
    .atx-module-text-block, .atx-module-visual-block, .atx-arch-video-block {
        width: 100% !important;
        flex: none !important;
    }
    .atx-nav {
        display: none;
    }
    .atx-header-wrap {
        height: 75px;
    }
    #atx-main-logo {
        height: 42px;
    }
    .atx-playlist-layout {
        flex-direction: column;
    }
    .atx-playlist-player-col, .atx-playlist-sidebar-col {
        width: 100%;
        flex: none;
    }
    .atx-playlist-sidebar-col {
        max-height: 350px;
    }
}

@media(max-width: 768px) {
    .atx-padding-section {
        padding: 80px 0 60px 0;
    }
    .atx-hero-content h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }
    .atx-hero-content p {
        font-size: 16px;
    }
    .atx-section-title {
        font-size: 28px;
    }
}

p, li, .atx-mod-extended-desc, .atx-bullets-extended {
    text-align: justify;
}

ul, .atx-bullets-extended {
    list-style-type: disc;
    padding-left: 20px;
}

li::marker {
    color: var(--atx-brand-red);
}

.atx-bg-light-gray {
    background-color: var(--atx-card-white-bg);
}