@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --bg-main: #1E1E2F;
    --accent: #8A2BE2;
    --accent-hover: #9c42ec;
    --text-main: #F4F6FC;
    --text-muted: rgba(244, 246, 252, 0.7);
    --border-subtle: rgba(244, 246, 252, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --sidebar-collapsed: 80px;
    --sidebar-expanded: 300px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
    overflow-x: hidden;
    position: relative;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

/* Background Gradients */
.radial-flare {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(30, 30, 47, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.flare-1 {
    top: -100px;
    left: -100px;
}

.flare-2 {
    bottom: 20%;
    right: -200px;
}

.flare-3 {
    top: 40%;
    left: 30%;
    width: 800px;
    height: 800px;
    opacity: 0.5;
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-collapsed);
    background-color: rgba(30, 30, 47, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 0;
    transition: width var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.sidebar:hover {
    width: var(--sidebar-expanded);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    white-space: nowrap;
    margin-bottom: 3rem;
}

.mobile-header {
    display: none;
}


.sidebar-logo i {
    font-size: 2rem;
    color: var(--accent);
    min-width: 32px;
    text-align: center;
}

.sidebar-logo span {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-left: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition);
}

.sidebar:hover .sidebar-logo span {
    opacity: 1;
    transform: translateX(0);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    position: relative;
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-main);
    background-color: rgba(138, 43, 226, 0.1);
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--accent);
    transform: scaleY(0);
    transition: transform var(--transition);
}

.nav-item:hover::before,
.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item i {
    font-size: 1.25rem;
    min-width: 32px;
    text-align: center;
}

.nav-item span {
    margin-left: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition);
    font-weight: 500;
}

.sidebar:hover .nav-item span {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-footer {
    padding: 0 1rem;
    white-space: normal;
    display: flex;
    justify-content: center;
}

.btn-urgency {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--accent);
    color: white;
    width: 48px;
    height: 48px;
    padding: 0 0 0 12px;
    border-radius: 12px;
    font-weight: 700;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    overflow: hidden;
}

.sidebar:hover .btn-urgency {
    width: 100%;
    padding: 1rem;
    justify-content: flex-start;
    height: auto;
}

.btn-urgency:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

.btn-urgency i {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
    animation: pulse 2s infinite;
}

.btn-urgency span {
    margin-left: 1rem;
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    flex-direction: column;
}

.btn-urgency span small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

.sidebar:hover .btn-urgency span {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-collapsed);
    width: calc(100% - var(--sidebar-collapsed));
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    width: 100%;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--accent);
    background-color: rgba(138, 43, 226, 0.05);
    transform: translateY(-2px);
}

.btn i {
    margin-left: 0.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    background: linear-gradient(rgba(30, 30, 47, 0.8), rgba(30, 30, 47, 0.95)), url('images/alcala-de-henares-madrid-cerrajero.webp') no-repeat center center/cover;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Stats Bar */
.stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 47, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 0;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-break: break-word;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.1);
}

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

/* ===========================
   RESPONSIVE — TABLET (≤992px)
   =========================== */
@media (max-width: 992px) {

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Mosaic pasa a 2 columnas antes de colapsar */
    .mosaic-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .mosaic-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
        height: 250px;
    }

    /* Tipografía */
    .section-title {
        font-size: 2.25rem;
    }

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

    /* Cards grid más compacto */
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* ===========================
   RESPONSIVE — MÓVIL (≤992px)
   =========================== */
@media (max-width: 992px) {
    .layout {
        display: block;
        overflow-x: hidden;
        width: 100%;
    }

    /* Mobile header */
    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background-color: rgba(30, 30, 47, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-subtle);
        padding: 0 1.25rem;
        align-items: center;
        justify-content: space-between;
        z-index: 2000;
    }

    .mobile-menu-toggle {
        background: none;
        border: none;
        color: var(--text-main);
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 0;
    }

    .hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--text-main);
        transition: all var(--transition);
        border-radius: 2px;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Sidebar como overlay */
    .sidebar {
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        visibility: hidden;
        flex-direction: column;
        padding: 80px 0 2rem;
        /* Give space for header */
        border-right: none;
        border-top: none;
        transition: transform var(--transition), visibility var(--transition);
        background-color: rgba(30, 30, 47, 0.99);
        overflow-y: auto;
        z-index: 1500;
        display: flex !important;
    }

    .sidebar.open {
        transform: translateX(0);
        visibility: visible;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    }

    .sidebar-logo {
        display: none;
    }

    /* Contenido principal */
    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 70px;
    }

    /* Container con menos padding */
    .container {
        padding: 0 1.25rem;
    }

    /* Secciones con menos espacio vertical */
    section {
        padding: 4rem 0;
    }

    /* Navegación */
    .nav-links {
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .nav-item {
        padding: 1rem 1.5rem;
    }

    .nav-item span,
    .btn-urgency span {
        display: inline-flex !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .nav-item::before {
        height: 100%;
        width: 3px;
        bottom: auto;
        top: 0;
        transform: scaleY(0);
    }

    .nav-item:hover::before,
    .nav-item.active::before {
        transform: scaleY(1);
    }

    .btn-urgency {
        margin: 0 1.5rem;
        width: auto;
        padding: 1rem;
        justify-content: flex-start;
        height: auto;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

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

    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Stats bar ya no es absolute */
    .stats-bar {
        position: static;
    }

    .stats-grid,
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Tipografía */
    .section-title {
        font-size: 1.75rem;
        word-break: break-word;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Page header */
    .page-header {
        padding: 6rem 0 2.5rem;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Cards */
    .grid {
        grid-template-columns: 1fr;
    }

    .card-img {
        height: 200px;
    }

    .blog-card .card-img {
        height: 160px;
    }

    /* Mosaic */
    .mosaic-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .mosaic-item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stat items */
    .stat-item h3 {
        font-size: 2rem;
    }
}

/* ===========================
   RESPONSIVE — MÓVIL PEQUEÑO (≤480px)
   =========================== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

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

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

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

    .page-header h1 {
        font-size: 1.75rem;
    }

    .urgency-card {
        padding: 2rem 1.25rem;
    }

    .mosaic-gallery {
        gap: 0.5rem;
    }
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
}

.price small {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Trust Bar */
.trust-bar {
    background: linear-gradient(90deg, rgba(30, 30, 47, 0) 0%, rgba(138, 43, 226, 0.05) 50%, rgba(30, 30, 47, 0) 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 4rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.trust-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: all var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(138, 43, 226, 0.05);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* About Mosaic */
.mosaic-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1rem;
    border-radius: 16px;
    overflow: hidden;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.mosaic-item:hover img {
    transform: scale(1.1);
}

.mosaic-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Team Avatars */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-main), rgba(138, 43, 226, 0.2));
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin: 0 auto 1rem;
    color: var(--text-main);
}

/* Blog List */
.blog-card .card-img {
    height: 200px;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-meta span {
    color: var(--text-muted);
}

/* Contact Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
}

.urgency-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(138, 43, 226, 0.02));
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.urgency-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, transparent 60%);
    z-index: 0;
}

.urgency-card>* {
    position: relative;
    z-index: 1;
}

.contact-info-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-item i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

/* Responsive */
@media (max-width: 992px) {

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

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

/* Mobile Header (solo visible en mobile) */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(30, 30, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1001;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.mobile-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-logo i {
    color: var(--accent);
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        width: 100%;
        height: calc(100vh - 70px);
        top: 70px;
        left: -100%;
        flex-direction: column;
        padding: 2rem 0;
        border-right: none;
        border-top: 1px solid var(--border-subtle);
        transition: left var(--transition);
        background-color: rgba(30, 30, 47, 0.98);
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar:hover {
        width: 100%;
        /* Override the previous hover */
    }

    .sidebar-logo {
        display: none;
        /* Hide desktop logo on mobile */
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 70px;
        /* Add padding for mobile header */
        padding-bottom: 0;
    }

    .nav-links {
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .nav-item {
        padding: 1rem 1.5rem;
    }

    .nav-item span,
    .btn-urgency span {
        display: inline-flex !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .nav-item::before {
        height: 100%;
        width: 3px;
        bottom: auto;
        top: 0;
        transform: scaleY(0);
    }

    .nav-item:hover::before,
    .nav-item.active::before {
        transform: scaleY(1);
    }

    .btn-urgency {
        margin: 0 1.5rem;
        width: auto;
        padding: 1rem;
        justify-content: flex-start;
        height: auto;
    }

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

    .stats-bar {
        position: relative;
    }

    .mosaic-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .mosaic-item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }
}

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(138, 43, 226, 0.05), transparent);
    border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Table Wrapper */
.seo-extended {
    width: 100%;
    overflow-x: hidden;
}

.seo-extended table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.seo-extended th,
.seo-extended td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
    .seo-extended table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.85rem;
        -webkit-overflow-scrolling: touch;
    }

    .seo-extended th,
    .seo-extended td {
        padding: 0.75rem 0.5rem !important;
    }
}

@media (max-width: 768px) {

    .seo-extended div[style*="padding: 4rem"],
    .seo-extended div[style*="padding: 5rem 3rem"] {
        padding: 2rem 1rem !important;
        border-radius: 20px !important;
    }

    .seo-extended h2[style*="font-size: 2.8rem"] {
        font-size: 1.8rem !important;
    }

    .seo-extended h3[style*="font-size: 2.5rem"],
    .seo-extended h3[style*="font-size: 2.2rem"] {
        font-size: 1.5rem !important;
    }

    .seo-extended .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}
