/* VARIABLES DE COLOR BASADAS EN EL LOGO FIMO CARE */
:root {
    --primary-purple: #6A3C8B;
    --primary-purple-dark: #512b6e;
    --accent-teal: #008CA8;
    --accent-teal-hover: #006b81;
    --accent-gold: #D9A036;
    --bg-light: #F8F9FA;
    --text-dark: #212529;
    --text-muted: #6C757D;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

body {
    line-height: 1.6;
    background-color: var(--white);
}

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

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* TIPOGRAFÍA Y TITULOS */
h1, h2, h3, h4 {
    color: var(--primary-purple);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; margin-bottom: 15px; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--accent-teal);
    margin-top: 10px;
}

.sub-heading {
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* BOTONES */
.btn-primary {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-purple-dark);
    transform: translateY(-2px);
}

.btn-primary-sm {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
}

.btn-primary-sm:hover {
    background-color: var(--accent-teal);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-teal);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--accent-teal);
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--accent-teal);
    color: var(--white);
}

/* HEADER & NAVBAR */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.navbar ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar a {
    font-weight: 600;
    color: var(--text-dark);
}

.navbar a:hover {
    color: var(--accent-teal);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-purple);
    cursor: pointer;
}

/* HERO */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f3f7fa 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge {
    background: rgba(217, 160, 54, 0.15);
    color: var(--accent-gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* GRIDS Y LAYOUTS */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.gap-md { gap: 25px; }
.gap-lg { gap: 50px; }
.mb-5 { margin-bottom: 50px; }
.mt-3 { margin-top: 15px; }

.img-box img, .rounded-img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.highlight-card {
    background: #F0F8FA;
    border-left: 4px solid var(--accent-teal);
    padding: 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-purple {
    font-size: 2rem;
    color: var(--primary-purple);
}

/* CARDS */
.card-feature, .service-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card-feature:hover, .service-card:hover {
    transform: translateY(-5px);
}

.card-img-holder {
    height: 180px;
    overflow: hidden;
}

.card-img-holder img, .service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body, .service-content {
    padding: 25px;
}

.card-icon, .service-icon {
    font-size: 2rem;
    color: var(--accent-teal);
    margin-bottom: 15px;
}

.highlight-border {
    border: 2px solid var(--accent-gold);
}

/* VENTAJAS Y ALIANZA */
.check-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.check-list i {
    color: var(--accent-teal);
    font-size: 1.3rem;
    margin-top: 3px;
}

.alliance-card {
    background: var(--primary-purple);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    position: relative;
}

.alliance-card h3 { color: var(--white); }

.badge-gold {
    background: var(--accent-gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
}

.alliance-list {
    margin-top: 20px;
}

.alliance-list li {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.alliance-list i {
    color: var(--accent-gold);
}

/* FAQ ACCORDION */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1fr solid #ddd;
    margin-bottom: 15px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-purple);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
    padding: 0 25px 25px 25px;
}

.faq-img {
    margin-top: 15px;
    border-radius: 8px;
    max-height: 200px;
    object-fit: cover;
}

.link-btn {
    color: var(--accent-teal);
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* RED MÉDICA */
.hospital-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hospital-cover {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.hospital-info {
    border-left: 3px solid var(--accent-gold);
    padding-left: 15px;
}

.hospital-link {
    color: var(--accent-teal);
    font-size: 0.9rem;
    font-weight: 600;
}

/* CONTACTO */
.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-teal);
}

.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-purple);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
}

.full-width { width: 100%; }

/* FOOTER */
.footer {
    background: var(--primary-purple-dark);
    color: var(--white);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .span-2-desktop { grid-column: span 1; }
}

@media (max-width: 768px) {
    .hero-grid, .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar.active {
        max-height: 400px;
    }

    .navbar ul {
        flex-direction: column;
        padding: 20px;
        align-items: flex-start;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}