/* =====================================================
 *  SÚPER SONRISA CLÍNICA DENTAL
 *  Main Stylesheet
 * = *==================================================== */


/* =====================================================
 *  CUSTOM FONTS
 *  Carity = headings
 *  Gilroy Light = regular text
 *  Gilroy ExtraBold = strong/emphasis text
 *===================================================== */

@font-face {
    font-family: "KG Primary Penmanship";
    src: url("fonts/KGPrimaryPenmanship.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("fonts/gilroy-light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("fonts/gilroy-extrabold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


/* =====================================================
 *  VARIABLES
 * = *==================================================== */
:root {

    --primary: #4ACBF3;
    --primary-dark: #091B2B;
    --primary-light: #e8f8f6;

    --navy: #091B2B;
    --dark: #263d4b;

    --text: #657681;
    --text-light: #8a9aa3;

    --white: #ffffff;
    --background: #f8fbfc;
    --border: #e1eaed;

    --shadow:
    0 15px 45px rgba(24, 59, 80, 0.09);

    --radius: 14px;

    --container: 1140px;
}


/* =====================================================
 *  RESET
 * = *==================================================== */

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


html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}


body {

    font-family:
    "Gilroy",
    Arial,
    Helvetica,
    sans-serif;

    font-weight: 300;

    color: var(--dark);

    background: var(--white);

    line-height: 1.6;

    overflow-x: hidden;
}


/* =====================================================
 *  TYPOGRAPHY
 *===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "KG Primary Penmanship", sans-serif;
    font-weight: 400;
}

strong,
b {
    font-family: "Gilroy", Arial, Helvetica, sans-serif;
    font-weight: 800;
}


img {
    max-width: 100%;
    display: block;
}


a {
    text-decoration: none;
    color: inherit;
}


button,
input,
textarea,
select {
    font-family: inherit;
}


/* =====================================================
 *  CONTAINER
 * = *==================================================== */

.container {

    width: min(
        var(--container),
               calc(100% - 40px)
    );

    margin: 0 auto;
}


/* =====================================================
 *  HEADER
 * = *==================================================== */

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
    rgba(9, 27, 43, 0.96);

    backdrop-filter:
    blur(10px);

    border-bottom:
    1px solid var(--border);
}


.nav-container {

    min-height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =====================================================
 *  LOGO
 * = *==================================================== */

.logo {

    font-size: 1.65rem;

    font-weight: 800;

    color: var(--navy);

    letter-spacing: -0.5px;
}


.logo span {
    color: var(--primary);
}


/* =====================================================
 *  NAVIGATION
 * = *==================================================== */

.navbar {

    display: flex;

    align-items: center;

    gap: 28px;
}


.navbar > a {

    color: var(--white);

    font-size: 0.92rem;

    font-weight: 600;

    transition:
    color 0.2s ease;
}


.navbar > a:hover {
    color: var(--primary);
}


.nav-appointment {

    padding:
    10px 18px;

    color: var(--white) !important;

    background:
    var(--primary);

    border-radius: 7px;

    transition:
    background 0.2s ease,
    transform 0.2s ease !important;
}


.nav-appointment:hover {

    background:
    var(--primary-dark);

    transform:
    translateY(-1px);
}


/* =====================================================
 *  MOBILE MENU BUTTON
 * = *==================================================== */

.menu-toggle {

    display: none;
    border: none;
    background: none;
    color: var(--primary-light);
    font-size: 1.7rem;
    cursor: pointer;
}


/* =====================================================
 *  HERO
 * = *==================================================== */

.hero {

    min-height:
    calc(100vh - 76px);

    display: flex;

    align-items: center;

    background:
    linear-gradient(
        120deg,
        #effaf9 0%,
        #ffffff 75%
    );

    overflow: hidden;
}


.hero-grid {

    display: grid;

    grid-template-columns:
    1.15fr 0.85fr;

    align-items: center;

    gap: 80px;

    padding:
    80px 0;
}


.hero-content {
    max-width: 680px;
}


.section-label {

    display: inline-block;

    margin-bottom: 15px;

    color: var(--primary);

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 2px;
}


.hero h1 {

    margin-bottom: 25px;

    color: var(--navy);

    font-size:
    clamp(2.8rem, 6vw, 4.7rem);

    line-height: 1.04;

    letter-spacing: -2px;
}


.hero h1 span {
    display: block;
    color: var(--primary);
}


.hero-content > p {

    max-width: 620px;

    margin-bottom: 32px;

    color: var(--text);

    font-size: 1.1rem;
}


/* =====================================================
 *  BUTTONS
 * = *==================================================== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding:
    0 23px;

    border-radius: 7px;

    font-size: 0.92rem;

    font-weight: 700;

    cursor: pointer;

    border: none;

    transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}


.btn:hover {

    transform:
    translateY(-2px);
}


.btn-primary {

    color: var(--white);

    background:
    var(--primary);

    box-shadow:
    0 8px 20px rgba(28, 166, 156, 0.2);
}


.btn-primary:hover {
    background: var(--primary-dark);
}


.btn-secondary {

    color: var(--primary-dark);

    background:
    var(--primary-light);
}


.btn-secondary:hover {

    background:
    #d9f1ef;
}


.btn-white {

    color: var(--primary-dark);

    background:
    var(--white);
}


.btn-white:hover {

    box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.12);
}


/* =====================================================
 *  HERO BUTTONS
 * = *==================================================== */

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 13px;

    margin-bottom: 35px;
}


/* =====================================================
 *  HERO FEATURES
 * = *==================================================== */

.hero-features {

    display: flex;

    flex-wrap: wrap;

    gap: 22px;
}


.feature {

    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--text);

    font-size: 0.85rem;

    font-weight: 600;
}


.feature-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 30px;

    height: 30px;

    border-radius: 50%;

    color: var(--white);

    background:
    var(--primary);

    font-size: 2rem;
}


/* =====================================================
 *  HERO VISUAL
 * = *==================================================== */

.hero-visual {

    position: relative;

    min-height: 480px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.hero-image-card {

    width: 380px;

    height: 450px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    border-radius: 30px;

    background:
    linear-gradient(
        145deg,
        #dff5f2,
        #bfe9e5
    );

    box-shadow:
    var(--shadow);

    transform:
    rotate(2deg);
}


.tooth-symbol {

    width: 325px;

    height: 325px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 25px;

    border-radius: 50%;

    background:
    rgba(255, 255, 255, 0.8);

    font-size: 6rem;
}


.hero-card-content {

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    color: var(--navy);
    font-size: 1.3rem;
    align-self: flex-start;
    margin-left: 40px;
}


.hero-card-content span {
    color: var(--text);
    font-size: 0.95rem;
}


/* =====================================================
 *  FLOATING CARD
 * = *==================================================== */

.floating-card {

    position: absolute;

    right: -10px;

    bottom: 45px;

    display: flex;

    align-items: center;

    gap: 1em;

    padding:
    16px 20px;

    border-radius: 12px;

    background:
    var(--white);

    box-shadow:
    0 15px 40px rgba(24, 59, 80, 0.15);
}


.floating-card strong,
.floating-card span {

    display: block;
}


.floating-card strong {

    color: var(--navy);

    font-size: 0.9rem;
}


.floating-card span {

    color: var(--text-light);

    font-size: 0.78rem;
}


.check-icon {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: var(--white);

    background:
    var(--primary);

    font-weight: bold;
}


/* =====================================================
 *  GENERAL SECTION
 * = *==================================================== */

.section {
    padding: 100px 0;
}


/* =====================================================
 *  SECTION HEADER
 * = *==================================================== */

.section-header {

    max-width: 700px;

    margin:
    0 auto 55px;

    text-align: center;
}


.section-header h2 {

    margin-bottom: 16px;

    color: var(--navy);

    font-size:
    clamp(2rem, 4vw, 2.8rem);

    line-height: 1.15;

    letter-spacing: -1px;
}


.section-header p {

    color: var(--text);

    font-size: 1rem;
}


/* =====================================================
 *  SERVICES
 * = *==================================================== */

.services {
    background: var(--white);
}


.services-grid {

    display: grid;

    grid-template-columns:
    repeat(3, 1fr);

    gap: 24px;
}


.service-card {

    padding: 32px 28px;

    border:
    1px solid var(--border);

    border-radius:
    var(--radius);

    background:
    var(--white);

    transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}


.service-card:hover {

    transform:
    translateY(-6px);

    border-color:
    transparent;

    box-shadow:
    var(--shadow);
}


.service-icon {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 22px;

    border-radius: 12px;

    background:
    var(--primary-light);

    font-size: 1.7rem;
}


.service-card h3 {

    margin-bottom: 12px;

    color: var(--navy);

    font-size: 1.2rem;
}


.service-card p {

    min-height: 82px;

    margin-bottom: 20px;

    color: var(--text);

    font-size: 0.92rem;
}


.service-card a {

    color:
    var(--primary-dark);

    font-size: 0.88rem;

    font-weight: 700;
}


.service-card a:hover {
    color: var(--primary);
}


/* =====================================================
 *  ABOUT
 * = *==================================================== */

.about {

    background:
    var(--background);
}


.about-grid {

    display: grid;

    grid-template-columns:
    0.9fr 1.1fr;

    align-items: center;

    gap: 90px;
}


.about-visual {

    position: relative;

    min-height: 420px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.about-circle {

    width: 330px;

    height: 330px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
    linear-gradient(
        145deg,
        #dff5f2,
        #bfe9e5
    );

    font-size: 8rem;

    box-shadow:
    var(--shadow);
}


.about-badge {

    position: absolute;

    right: 5%;

    bottom: 35px;

    display: flex;

    flex-direction: column;

    align-items: center;

    padding:
    18px 25px;

    border-radius: 12px;

    background:
    var(--white);

    box-shadow:
    var(--shadow);
}


.about-badge strong {

    color: var(--primary);

    font-size: 2rem;

    line-height: 1;
}


.about-badge span {

    margin-top: 5px;

    color: var(--text);

    font-size: 0.75rem;
}


.about-content h2 {

    max-width: 600px;

    margin-bottom: 20px;

    color: var(--navy);

    font-size: 2.7rem;

    line-height: 1.15;
}


.about-content > p {

    margin-bottom: 15px;

    color: var(--text);
}


.about-list {

    display: grid;

    grid-template-columns:
    repeat(2, 1fr);

    gap: 16px;

    margin-top: 28px;
}


.about-list div {

    display: flex;

    align-items: center;

    gap: 10px;
}


.about-list span {

    width: 25px;

    height: 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: var(--white);

    background:
    var(--primary);

    font-size: 0.75rem;
}


.about-list p {

    color: var(--dark);

    font-size: 0.9rem;

    font-weight: 600;
}


/* =====================================================
 *  CTA
 * = *==================================================== */

.cta {

    padding:
    70px 0;

    background:
    var(--primary);
}


.cta-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;
}


.cta .section-label {
    color: #d7f5f2;
}


.cta h2 {

    margin-bottom: 10px;

    color: var(--white);

    font-size: 2.5rem;
}


.cta p {

    max-width: 650px;

    color:
    rgba(255, 255, 255, 0.85);
}


/* =====================================================
 *  TESTIMONIALS
 * = *==================================================== */

.testimonials {
    background: var(--white);
}


.testimonial-grid {

    display: grid;

    grid-template-columns:
    repeat(3, 1fr);

    gap: 24px;
}


.testimonial {

    padding: 30px;

    border:
    1px solid var(--border);

    border-radius:
    var(--radius);

    background:
    var(--white);
}


.stars {

    margin-bottom: 15px;

    color:
    #f4b740;

    letter-spacing: 2px;
}


.testimonial p {

    margin-bottom: 20px;

    color: var(--text);

    font-size: 0.95rem;

    font-style: italic;
}


.testimonial strong {

    color: var(--navy);

    font-size: 0.9rem;
}


/* =====================================================
 *  CONTACT
 * = *==================================================== */

.contact {

    background:
    var(--background);
}


.contact-grid {

    display: grid;

    grid-template-columns:
    0.85fr 1.15fr;

    gap: 80px;

    align-items: start;
}


.contact-info h2 {

    margin-bottom: 18px;

    color: var(--navy);

    font-size: 2.7rem;

    line-height: 1.15;
}


.contact-info > p {

    margin-bottom: 35px;

    color: var(--text);
}


.contact-item {

    display: flex;

    align-items: flex-start;

    gap: 15px;

    margin-bottom: 24px;
}


.contact-item > span {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background:
    var(--primary-light);

    font-size: 1.1rem;
}


.contact-item strong {

    display: block;

    margin-bottom: 2px;

    color: var(--navy);
}


.contact-item p {

    color: var(--text);

    font-size: 0.9rem;
}


/* =====================================================
 *  CONTACT FORM
 * = *==================================================== */

.contact-form {

    padding: 38px;

    border-radius:
    var(--radius);

    background:
    var(--white);

    box-shadow:
    var(--shadow);
}


.contact-form h3 {

    margin-bottom: 28px;

    color: var(--navy);

    font-size: 1.5rem;
}


.form-row {

    display: grid;

    grid-template-columns:
    1fr 1fr;

    gap: 18px;
}


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


.form-group label {

    display: block;

    margin-bottom: 7px;

    color: var(--dark);

    font-size: 0.85rem;

    font-weight: 700;
}


.form-group input,
.form-group textarea,
.form-group select {

    width: 100%;

    padding:
    13px 14px;

    border:
    1px solid var(--border);

    border-radius: 7px;

    outline: none;

    background:
    var(--white);

    color: var(--dark);

    font-size: 0.9rem;

    transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.form-group textarea {

    resize: vertical;

    min-height: 120px;
}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {

    border-color:
    var(--primary);

    box-shadow:
    0 0 0 3px rgba(28, 166, 156, 0.1);
}


.form-button {
    width: 100%;
}


.form-note {

    display: block;

    margin-top: 12px;

    color: var(--text-light);

    font-size: 0.72rem;

    text-align: center;
}


/* =====================================================
 *  LOCATION
 * = *==================================================== */

.location {
    background: var(--white);
}


.location-grid {

    display: grid;

    grid-template-columns:
    0.7fr 1.3fr;

    gap: 25px;
}


.location-info {

    padding: 35px;

    border:
    1px solid var(--border);

    border-radius:
    var(--radius);
}


.location-info h3 {

    margin-bottom: 20px;

    color: var(--navy);

    font-size: 1.5rem;
}


.location-info p {

    margin-bottom: 20px;

    color: var(--text);

    font-size: 0.9rem;
}


.map-container {

    min-height: 360px;

    overflow: hidden;

    border-radius:
    var(--radius);
}


.map-placeholder {

    width: 100%;

    height: 100%;

    min-height: 360px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:
    linear-gradient(
        135deg,
        #dff5f2,
        #dceff3
    );
}


.map-placeholder span {

    margin-bottom: 12px;

    font-size: 3.5rem;
}


.map-placeholder h3 {

    margin-bottom: 5px;

    color: var(--navy);
}


.map-placeholder p {

    color: var(--text);
}


/* =====================================================
 *  WHATSAPP BUTTON
 * = *==================================================== */

.whatsapp-button {

    position: fixed;

    right: 25px;

    bottom: 25px;

    z-index: 900;

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: var(--white);

    background:
    #25d366;

    box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.18);

    transition:
    transform 0.2s ease;
}


.whatsapp-button:hover {

    transform:
    scale(1.08);
}


.whatsapp-button span {

    font-size: 1.9rem;
}


/* =====================================================
 *  FOOTER
 * = *==================================================== */

.footer {

    padding-top: 65px;

    color:
    #c7d5dc;

    background:
    var(--navy);
}


.footer-grid {

    display: grid;

    grid-template-columns:
    1.5fr 0.7fr 1fr;

    gap: 60px;

    padding-bottom: 50px;
}


.footer-logo {

    display: inline-block;

    margin-bottom: 15px;

    color:
    var(--white);
}


.footer-grid > div:first-child p {

    max-width: 400px;

    color:
    #aebfc8;

    font-size: 0.9rem;
}


.footer h4 {

    margin-bottom: 17px;

    color:
    var(--white);

    font-size: 0.95rem;
}


.footer-grid a:not(.footer-logo) {

    display: block;

    margin-bottom: 9px;

    color:
    #aebfc8;

    font-size: 0.85rem;
}


.footer-grid a:hover {
    color: var(--white);
}


.footer-grid p {

    margin-bottom: 8px;

    color:
    #aebfc8;

    font-size: 0.85rem;
}


.footer-bottom {

    padding:
    18px 0;

    text-align: center;

    border-top:
    1px solid rgba(255, 255, 255, 0.1);
}


.footer-bottom p {

    color:
    #8fa4af;

    font-size: 0.75rem;
}


/* =====================================================
 *  RESPONSIVE — TABLET
 * = *==================================================== */

@media (max-width: 950px) {

    .navbar {
        gap: 15px;
    }


    .hero-grid {

        grid-template-columns:
        1fr;

        gap: 50px;

        padding:
        70px 0;
    }


    .hero-content {
        max-width: 750px;
    }


    .hero-visual {
        min-height: 430px;
    }


    .services-grid {

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


    .about-grid {

        grid-template-columns:
        1fr;

        gap: 50px;
    }


    .about-visual {
        min-height: 350px;
    }


    .about-content {
        max-width: 750px;
        margin: 0 auto;
    }


    .testimonial-grid {

        grid-template-columns:
        1fr;

        max-width: 700px;

        margin: 0 auto;
    }


    .contact-grid {

        grid-template-columns:
        1fr;

        gap: 45px;
    }


    .contact-info {
        max-width: 700px;
    }


    .location-grid {

        grid-template-columns:
        1fr;
    }

}


/* =====================================================
 *  RESPONSIVE — MOBILE
 * = *==================================================== */

@media (max-width: 700px) {

    .container {

        width:
        calc(100% - 30px);
    }


    .header {

        position: sticky;
    }


    .nav-container {
        min-height: 68px;
    }


    .menu-toggle {
        display: block;
    }


    .navbar {

        position: absolute;

        top: 68px;

        left: 0;

        right: 0;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding:
        10px 20px 20px;

        border-bottom:
        1px solid var(--border);

        background:
        var(--primary-dark);

        box-shadow:
        0 15px 25px rgba(24, 59, 80, 0.08);
    }


    .navbar.active {
        display: flex;
    }


    .navbar > a {

        padding:
        12px 0;

        border-bottom:
        1px solid #f0f3f4;
    }


    .navbar .nav-appointment {

        margin-top: 10px;

        padding:
        12px;

        text-align: center;

        border-bottom: none;
    }


    .hero-grid {

        padding:
        55px 0;
    }


    .hero h1 {

        font-size:
        2.7rem;

        letter-spacing:
        -1.5px;
    }


    .hero-content > p {

        font-size:
        1rem;
    }


    .hero-buttons {

        flex-direction:
        column;
    }


    .hero-buttons .btn {
        width: 100%;
    }


    .hero-features {

        flex-direction:
        column;

        gap: 10px;
    }


    .hero-visual {

        min-height:
        390px;
    }


    .hero-image-card {

        width:
        290px;

        height:
        350px;
    }


    .tooth-symbol {

        width:
        140px;

        height:
        140px;

        font-size:
        4.5rem;
    }


    .floating-card {

        right:
        0;

        bottom:
        1px;
    }


    .section {

        padding:
        70px 0;
    }


    .section-header {

        margin-bottom:
        40px;
    }


    .section-header h2 {

        font-size:
        2rem;
    }


    .services-grid {

        grid-template-columns:
        1fr;
    }


    .service-card p {
        min-height: auto;
    }


    .about-circle {

        width:
        270px;

        height:
        270px;

        font-size:
        6rem;
    }


    .about-content h2 {

        font-size:
        2.2rem;
    }


    .about-list {

        grid-template-columns:
        1fr;
    }


    .cta {

        padding:
        55px 0;
    }


    .cta-content {

        flex-direction:
        column;

        align-items:
        flex-start;
    }


    .cta h2 {

        font-size:
        2.1rem;
    }


    .contact-info h2 {

        font-size:
        2.2rem;
    }


    .contact-form {

        padding:
        25px 20px;
    }


    .form-row {

        grid-template-columns:
        1fr;

        gap: 0;
    }


    .location-grid {

        grid-template-columns:
        1fr;
    }


    .map-container iframe,
    .map-placeholder {

        display: block;
        width: 100%;
        height: 100%;
        min-height: 350px;
        border: 0;
        border-radius: 10px;
    }


    .footer-grid {

        grid-template-columns:
        1fr;

        gap:
        35px;
    }


    .whatsapp-button {

        right:
        18px;

        bottom:
        18px;

        width:
        53px;

        height:
        53px;
    }

}


/* =====================================================
 *  ACCESSIBILITY
 * = *==================================================== */

:focus-visible {

    outline:
    3px solid rgba(28, 166, 156, 0.4);

    outline-offset:
    3px;
}

@keyframes toothMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(15px);
    }
}

.tooth-symbol {
    animation: toothMove 2s ease-in-out infinite;
}
