/* ========================================
   iOS STYLE - DISEÑO MINIMALISTA Y LIMPIO
   ======================================== */

:root {
    --primary-blue: #0099cc;
    --accent-red: #ff3b30;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-lighter: #fafafa;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --divider: #e5e5ea;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);

    --font-main: 'Modelica', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    --font-size-body: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --line-height: 1.5;
}

/* ========================================
   FUENTE MODELICA
   ======================================== */

@font-face {
    font-family: 'Modelica';
    src: url('../fonts/BwModelica-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Modelica';
    src: url('../fonts/BwModelica-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Modelica';
    src: url('../fonts/BwModelica-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Modelica';
    src: url('../fonts/BwModelica-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Modelica';
    src: url('../fonts/BwModelica-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

/* ========================================
   ESTILOS BASE
   ======================================== */

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: var(--line-height);
    font-size: var(--font-size-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   NAVEGACIÓN
   ======================================== */

.navbar {
    background-color: var(--bg-white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--divider);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 40px;
}

.logo svg {
    max-height: 100%;
    width: auto;
}

.logo text {
    font-size: 20px;
    font-weight: bold;
    fill: var(--text-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #0066a0;
    font-weight: 700;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 1px;
}

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

.hero-heading {
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.1;
    display: inline-block;
    text-align: right;
}

.hero {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    min-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-gray);
    margin-bottom: 24px;
    max-width: 600px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* ========================================
   BOTONES
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 153, 204, 0.3);
}

.btn-primary:hover {
    background-color: #0083b3;
    box-shadow: 0 8px 20px rgba(0, 153, 204, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--primary-blue);
    border: 1.5px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--bg-white);
    color: var(--primary-blue);
    border: 1.5px solid var(--primary-blue);
}

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

/* ========================================
   FEATURED SECTION
   ======================================== */

.featured {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    background-color: var(--bg-lighter);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--divider);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--primary-blue);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

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

.services-preview {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.services-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.service-item {
    padding: 32px;
    background-color: var(--bg-white);
    border-radius: 20px;
    border: 1px solid var(--divider);
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.service-item h4 {
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.service-item ul {
    list-style: none;
    margin-bottom: 16px;
}

.service-item li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-gray);
    font-size: 14px;
}

.service-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.service-link:hover {
    color: var(--text-dark);
}

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

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

.cta-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0083b3 100%);
    text-align: center;
    color: var(--bg-white);
}

.cta-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.95;
}

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

.footer {
    background-color: #1a1a1a;
    color: var(--bg-white);
    padding: 60px 20px 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background-color: var(--primary-blue);
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .logo img {
        height: 50px !important;
    }

    /* Contacto: apila columnas verticalmente */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Grupos de botones: apila verticalmente */
    .btn-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .btn-row .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--bg-white);
        padding: 16px;
        gap: 16px;
        border-bottom: 1px solid var(--divider);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 60px 20px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .featured,
    .services-preview,
    .cta-section {
        padding: 60px 20px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .features-grid,
    .services-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .nav-menu {
        gap: 8px;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-item {
    animation: fadeInUp 0.6s ease-out;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
