:root {
    --primary: #004e96;
    /* Azul logo */
    --primary-dark: #003a70;
    --secondary: #f4b41a;
    /* Oro logo */
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lexend', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

.text-center {
    text-align: center;
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-link {
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-link svg {
    flex-shrink: 0;
}

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: 90px;
    display: block;
}

/* Grid Systems */
.grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.6rem 1.5rem;
    /* Aumentado un 20% de grosor */
    /* Reducido de 0.75rem */
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    border: none;
    line-height: 1.1;
    /* Interlineado aún más bajo */
}

.btn svg {
    flex-shrink: 0;
}

.btn-large {
    padding: 0.95rem 2.5rem;
    /* Aumentado un 20% de grosor */
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-primary:hover {
    background: #e2a613;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    display: block;
}

/* Hero */
.hero {
    position: relative;
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.2) 100%);
}

.hero .container {
    margin-left: 0;
    margin-right: auto;
    max-width: none;
    width: 100%;
    padding-left: max(1.5rem, calc((100% - 1100px) / 2 + 1.5rem));
}

.hero-content {
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 10;
    text-align: left;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.badge {
    display: inline-block;
    background: rgba(0, 78, 150, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: #2d3748;
    /* Gris más oscuro para mejor contraste */
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

h2 {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Services (Section 2) */
.intro-text {
    max-width: 1018px;
    margin-bottom: 3rem;
}

.sectors-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.sector-list ul {
    column-count: 2;
    column-gap: 2rem;
    display: block;
    /* Desactivamos el grid para usar columnas */
}

.sector-list li {
    margin-bottom: 0.8rem;
    break-inside: avoid;
    /* Evita que un punto de la lista se parta entre columnas */
}

.sector-list li::before {
    content: "• ";
    color: var(--secondary);
    font-weight: bold;
}

.special-services {
    display: flex;
}

.info-box {
    flex: 1;
    background: #fffbef;
    /* Amarillo muy claro */
    border-left: 5px solid var(--secondary);
    /* El dorado del logo */
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-box:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
    /* Efecto de desplazamiento lateral para la caja de lista */
}

.info-box h3 {
    color: var(--primary);
    /* Cambiado de rojo a azul corporativo */
}

.info-box li {
    margin-bottom: 0.75rem;
}

.info-box li::before {
    content: "• ";
    color: var(--secondary);
    font-weight: bold;
}

/* Benefits (Section 3) */
.benefits {
    background: linear-gradient(rgba(0, 78, 150, 0.6), rgba(0, 78, 150, 0.3)),
        url('doctor-working-computer-tenerife.jpg');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-card h3 {
    margin-bottom: 0.5rem;
}

.benefit-card p {
    margin: 0;
}

/* How we work (Section 4) */
.how-we-work {
    background: var(--white);
}

.steps-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    position: relative;
    gap: 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step:hover .step-num {
    background: var(--secondary);
    color: var(--dark);
    transform: scale(1.1);
}

.step:hover h4 {
    color: var(--primary);
}


/* Línea conectora entre números */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    /* Mitad de la altura del círculo step-num */
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: -1;
    /* Enviado al fondo para que no tape los números en hover */
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

h4 {
    margin-top: 0.5rem;
}


.step h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

/* CTA Final (Section 5) */
.cta-final {
    background: linear-gradient(rgba(0, 78, 150, 0.85), rgba(0, 78, 150, 0.85)), url('cta-final-v2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
}

.cta-final h2 {
    color: var(--white);
}

.contact-links {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    transition: 0.3s;
    word-break: break-all;
}

.contact-item:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.contact-item svg {
    flex-shrink: 0;
}

@media (min-width: 969px) {
    .cta-final .grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }

    .cta-content {
        text-align: left;
    }
}

.simple-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    color: var(--text);
}

.simple-form .btn {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    font-size: 1.1rem;
    margin-top: 20px;
}


.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-nav a {
    margin: 0 0.75rem;
    color: var(--text-light);
}

/* Floating Buttons */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: 0.3s;
}

.float-wa {
    background: #25d366;
}

.float-call {
    background: #f4b41a;
}

.float-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 968px) {

    .grid,
    .grid-three,
    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: left;
        max-width: 100%;
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .hero-image-container {
        order: -1;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.85rem;
    }

    .sector-list ul {
        column-count: 1;
    }

    .steps-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .step::after {
        display: none;
    }

    .hide-mobile {
        display: none;
    }

    .main-logo {
        height: 90px;
    }

    .contact-item {
        font-size: 1rem;
        gap: 8px;
    }
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 480px) {}