/* ==================== VARIABLES Y RESET ==================== */
:root {
    --primary-color: #1aa89a;
    --secondary-color: #6c3fa0;
    --dark-color: #1a2332;
    --light-gray: #f5f7fa;
    --border-gray: #e5e7eb;
    --text-dark: #1a2332;
    --text-light: #6b7280;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background-color: #273958;
    padding: calc(1rem + env(safe-area-inset-top, 0px)) 0 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 72px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #bbe6fb;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    left: calc(1rem - 5px);
    top: 50%;
    transform: translateY(calc(-50% + 25px));
    z-index: 1001;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(calc(-50% + 10px));
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

@media (min-width: 769px) {
    .nav-menu {
        transform: translateY(5px);
    }
}

.nav-link {
    color: #bbe6fb;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(187, 230, 251, 0.8), 0 0 20px rgba(26, 168, 154, 0.6);
    transform: scale(1.01);
}

.cta-button {
    background-color: #bbe6fb;
    color: #273958;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #7eb8d4;
    color: #ffffff;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 0 20px rgba(126, 184, 212, 0.6), 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, #273958 0%, #1f2d42 100%);
    padding: 2rem;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    height: 100%;
}

.breadcrumb {
    color: #bbe6fb;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-title .highlight {
    color: #bbe6fb;
}

.highlight {
    color: #1aa89a;
}

.hero-description {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background-color: #bbe6fb;
    color: #273958;
    border: none;
    padding: 1rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: #7eb8d4;
    color: #ffffff;
    transform: translateY(-1px) scale(1.005);
    box-shadow: 0 0 12px rgba(126, 184, 212, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: #bbe6fb;
    border: 2px solid #bbe6fb;
    padding: 1rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: #7eb8d4;
    color: #ffffff;
    transform: translateY(-1px) scale(1.005);
    box-shadow: 0 0 12px rgba(126, 184, 212, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    order: -1;
}

.hero-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
}

.hero-logo-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.card-monitoring {
    border-top: 4px solid #bbe6fb;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background-color: var(--light-gray);
    padding: 2rem;
    height: auto;
    min-height: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    scroll-margin-top: 60px;
}

.services-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-label {
    color: #235a9f;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.highlight {
    color: #235a9f;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.4;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 0;
    border-radius: 1rem;
    border: 2px solid #235a9f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    overflow: hidden;
}

.service-card h3,
.service-card p,
.service-card .service-features {
    padding: 0 2rem;
}

.service-card h3 {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    color: #235a9f;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: calc(1rem - 2px) calc(1rem - 2px) 0 0;
    margin: 0;
    display: block;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature {
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== AURA BIOMED SECTION ==================== */
.aura-section {
    background-color: #ffffff;
    padding: 2rem;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    scroll-margin-top: 60px;
}

.aura-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    height: 100%;
}

.aura-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #273958;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.badge-icon {
    font-size: 1rem;
}

.aura-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.highlight-purple {
    color: #235a9f;
}

.aura-description {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.aura-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary-purple {
    background-color: #273958;
    color: white;
    border: none;
    padding: 1rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary-purple:hover {
    background-color: #1f2d42;
    transform: translateY(-1px) scale(1.005);
    box-shadow: 0 0 12px rgba(39, 57, 88, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary-dark {
    background-color: transparent;
    color: #273958;
    border: 2px solid #273958;
    padding: 1rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary-dark:hover {
    background-color: #273958;
    color: white;
    transform: translateY(-1px) scale(1.005);
    box-shadow: 0 0 12px rgba(39, 57, 88, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.aura-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-box {
    background-color: var(--light-gray);
    padding: 1.5rem 1.75rem;
    border-radius: 0.75rem;
    transition: var(--transition);
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: 0.35rem;
    align-items: flex-start;
}

.feature-box:hover {
    background-color: #e8f5f3;
    transform: translateY(-2px);
}

.feature-box svg {
    color: #235a9f;
    stroke: #235a9f;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    grid-row: 1;
    grid-column: 1;
    align-self: center;
 }

.feature-box h4 {
    font-size: 1.125rem;
    margin: 0 0 0.35rem 0;
    color: var(--text-dark);
    grid-column: 2;
    grid-row: 1;
    line-height: 1.2;
    align-self: center;
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    grid-column: 1 / span 2;
    grid-row: 2;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    background-color: var(--light-gray);
    padding: 2rem;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.contact-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    height: 100%;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    min-width: 2rem;
}

.contact-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.contact-value {
    color: var(--text-dark);
    font-weight: 500;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #bbe6fb;
    box-shadow: 0 0 0 3px rgba(187, 230, 251, 0.3);
}

.btn-submit {
    width: 100%;
    background-color: #273958;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit svg {
    width: 20px;
    height: 20px;
}

.btn-submit:hover {
    background-color: #1f2d42;
    transform: translateY(-1px) scale(1.005);
    box-shadow: 0 0 12px rgba(39, 57, 88, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo .logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #bbe6fb;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .navbar-logo {
        left: calc(3rem + 10px);
        top: calc(0.85rem + env(safe-area-inset-top, 0px) - 5px);
        transform: none;
    }
    .navbar-container {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: inline-block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #273958;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem 1rem calc(1.5rem + 40px);
        display: none;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.open {
        display: flex;
    }

    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        margin-left: auto;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        height: auto;
        padding: calc(2rem + 64px) 1rem 2rem 1rem;
        margin-top: 0;
    }

    .hero-logo-container {
        order: -1;
    }

    .hero-content {
        order: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .services {
        height: auto;
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .aura-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .aura-section {
        height: auto;
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .aura-features {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-section {
        height: auto;
        min-height: 100vh;
        padding: 2rem 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-logo {
        font-size: 1rem;
    }

    .nav-menu {
        display: none;
    }

    .hero {
        height: auto;
        padding: calc(1rem + 64px) 1rem 1rem 1rem;
        margin-top: 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .services {
        height: auto;
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .aura-section {
        height: auto;
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .aura-title {
        font-size: 1.5rem;
    }

    .contact-section {
        height: auto;
        min-height: 100vh;
        padding: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-primary-purple,
    .btn-secondary-dark {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .aura-buttons {
        flex-direction: column;
    }

    .btn-primary-purple,
    .btn-secondary-dark {
        width: 100%;
    }
}

/* ==================== CERTIFICATE BADGE ==================== */
.certificate-badge {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-size: 0.75rem;
}

.certificate-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .certificate-badge {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp-btn:hover {
    background-color: #20ba5e;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    color: white;
    width: 28px;
    height: 28px;
    stroke: white;
}

/* ==================== ORIENTACIÓN PORTRAIT (MÓVIL VERTICAL) ==================== */
@media (orientation: portrait) {
    .hero {
        height: auto;
        min-height: auto;
        max-height: none;
        padding: calc(2rem + 64px) 1rem 2rem 1rem;
        margin-top: 0;
        margin-bottom: 2rem;
    }

    .services {
        height: auto;
        min-height: auto;
        max-height: none;
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .aura-section {
        height: auto;
        min-height: auto;
        max-height: none;
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .contact-section {
        height: auto;
        min-height: auto;
        max-height: none;
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
}

.mensaje-respuesta {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
    background-color: #f0f0f0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
