/* CSS Variables based on Brand Guidelines */
:root {
    --bg-main: #ffffff;
    --bg-banner: #058586;
    --text-primary: #00b9b8;
    --text-dark: #545454;
    --text-title-dark: #243140;
    --text-white: #ffffff;

    --btn-bg: #198882;
    --btn-text: #ffffff;
    --btn-hover: #00b9b8;

    --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.08);
    --border-radius: 6px;
    --font-family: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
}

h2 {
    font-size: 40px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    /* Semibold */
    color: var(--text-dark);
    margin-bottom: 15px;
}

h3.variant {
    font-size: 25px;
    font-weight: 400;
    /* Regular */
}

a {
    text-decoration: none;
}

p {
    margin-bottom: 15px;
}

ul {
    list-style: none;
}

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

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

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

.mt-5 {
    margin-top: 50px;
}

/* Buttons */
.btn,
.btn-cta {
    display: inline-block;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.2px;
    border-radius: var(--border-radius);
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn:hover,
.btn-cta:hover {
    background-color: var(--btn-hover);
    color: var(--btn-text);
}

.btn.light {
    border: 2px solid #fff;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-outline {
    background-color: transparent;
    color: var(--btn-bg);
    border: 2px solid var(--btn-bg);
}

.btn-outline:hover {
    background-color: var(--btn-bg);
    color: var(--btn-text);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(10, 54, 54, 0.7), rgba(5, 133, 134, 0.7)), url('https://dentalspaclinics.com/wp-content/uploads/2026/04/Portada-Barcelona.jpg') no-repeat center center/cover;
    padding: 80px 0;
    color: var(--text-white);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-left-col {
    flex: 1;
    min-width: 300px;
}

.hero-logo {
    max-height: 110px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-white);
}

.hero-section p {
    color: var(--text-white);
    font-size: 18px;
}

.hero-subtitle {
    opacity: 0.9;
    font-size: 16px !important;
}

/* Form Styles */
.hero-form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 450px;
    color: var(--text-dark);
}

.hero-form-container h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-primary);
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #777;
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

.checkbox-group a {
    color: var(--text-primary);
}

.lead-form .btn-cta {
    width: 100%;
}

/* General Sections */
.section {
    padding: 50px 0;
}

.bg-light {
    background-color: #ffffff;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 18px;
}

/* Multilingual Section */
.section-grid {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.section-grid .text-content,
.section-grid .image-content {
    flex: 1;
    min-width: 300px;
}

/* Specific sizing for Advanced Technology and Experience sections */
@media (min-width: 769px) {

    .section-technology .section-grid .image-content,
    .section-experience .section-grid .image-content {
        flex: 0 0 30%;
    }

    .section-technology .section-grid .text-content,
    .section-experience .section-grid .text-content {
        flex: 1;
    }
}

.image-content img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.benefits-list {
    margin: 30px 0;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.benefits-list li i {
    color: var(--text-primary);
    font-size: 20px;
}

/* Technology 3-Col */
.three-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.three-col-grid .col-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.three-col-grid .col-item h3 {
    color: var(--text-title-dark);
    margin-bottom: 10px;
}

.three-col-grid .col-item p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.three-col-grid .btn-outline {
    margin-bottom: 30px;
}

.img-wrapper {
    position: relative;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.img-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.badge-wrapper {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    white-space: nowrap;
}

.platinum-badge {
    background: #ffffff;
    color: #243140;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    display: inline-block;
}

.tech-benefits {
    /* max-width: 800px; */
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.tech-benefits h4 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 20px;
}

.tech-benefits ul li {
    margin-bottom: 10px;
}

/* Banner CTA */
.banner-cta {
    background-color: var(--bg-banner);
    padding: 40px 0;
    color: var(--text-white);
}

.banner-cta h2 {
    color: var(--text-white);
    margin-bottom: 20px;
    /* max-width: 800px; */
    margin-left: auto;
    margin-right: auto;
}

/* Experience Section */
.experience-lists {
    display: flex;
    gap: 40px;
    margin: 60px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.list-card {
    flex: 1;
    min-width: 300px;
    /* max-width: 500px; */
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.list-card h4 {
    color: var(--text-primary);
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.list-card ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.list-card ul li::before {
    content: "\f00c";
    /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--text-primary);
}

/* 4-Col Grid (Flip Cards) */
.treatments-section {
    margin-top: 80px;
}

.treatments-title {
    color: var(--text-primary);
    font-size: 32px;
    margin-bottom: 40px;
}

.four-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.flip-card {
    background-color: transparent;
    height: 200px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-soft);
    border-radius: 12px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.flip-card-front {
    background-color: #ffffff;
    color: var(--text-title-dark);
}

.flip-card-front i {
    font-size: 40px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.flip-card-front img.treatment-icon {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}

.flip-card-front h4 {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
}

.flip-card-back {
    background-color: var(--text-primary);
    color: white;
    transform: rotateY(180deg);
}

.flip-card-back p {
    font-size: 14px;
    margin-bottom: 15px;
    color: white;
}

.flip-card-back .btn-sm {
    background-color: #ffffff;
    color: var(--text-primary);
}

.flip-card-back .btn-sm:hover {
    background-color: var(--text-title-dark);
    color: #ffffff;
}

/* Footer */
.footer {
    background-color: #0d1e34;
    /* Darker blue as per image */
    color: #ffffff;
    padding: 50px 0 30px;
    font-size: 14px;
}

.footer h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.footer p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-badge {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
    background-color: white;
    padding: 10px;
    border-radius: 4px;
}

.col-office .contact-info {
    margin-bottom: 20px;
}

.col-office .highlight-text {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 15px;
}

.member-badge {
    width: 150px;
    height: auto;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 36px;
}

.redsys-logo {
    width: 156px;
    height: auto;
    margin-top: 10px;
}

.financing-logos {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.bank-logo {
    font-weight: bold;
    font-size: 20px;
}

.bank-logo-img {
    height: 25px;
    width: auto;
    object-fit: contain;
}

.bank-logo.caixabank {
    font-family: Arial, sans-serif;
}

.bank-logo.bbva {
    color: #0f4470;
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.disclaimer {
    font-size: 11px;
    opacity: 0.8;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

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

.footer-bottom h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-bottom .copyright {
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-bottom .legal-text {
    font-size: 11px;
    opacity: 0.7;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

/* Floating WhatsApp / Chat */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-chat {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #0078ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.floating-chat:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 30px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-form-container {
        width: 100%;
    }

    .section-grid {
        flex-direction: column;
        text-align: center;
    }

    .benefits-list li {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .financing-logos {
        align-items: center;
    }

    .payment-icons {
        justify-content: center;
    }

    .footer-badge,
    .member-badge {
        margin: 0 auto 15px;
    }

    .redsys-logo {
        margin: 10px auto 0;
    }
}

/* Tablet Responsive */
@media (max-width: 992px) and (min-width: 769px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}