/* ==================== ESTILOS GENERALES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* ==================== ANIMACIONES DE FONDO ==================== */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: #000000;
}

.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    height: 1px;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.4; }
}

/* ==================== HEADER ==================== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

nav a:hover {
    color: #00d4ff;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: #00d4ff;
}

nav a.active::after {
    width: 100%;
}

/* ==================== PÁGINAS ==================== */
.page {
    display: none;
    position: relative;
    z-index: 5;
    min-height: calc(100vh - 150px);
    animation: fadeIn 0.5s;
    margin-top: 90px;
}

.page.active {
    display: block;
}

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

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px;
}

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

.hero h1 {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #ffffff;
    animation: glowText 2s ease-in-out infinite;
}

.hero-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    display: block;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glowText {
    0%, 100% { text-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    50% { text-shadow: 0 0 40px rgba(0, 212, 255, 0.6); }
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    color: #888888;
    line-height: 1.6;
}

.hero-subtitle {
    font-size: 20px;
    color: #666666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0 40px;
}

.hero-feature {
    padding: 30px;
    border: 1px solid #222222;
    border-radius: 15px;
    transition: all 0.3s;
    background: rgba(10, 10, 10, 0.5);
}

.hero-feature:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    background: rgba(0, 212, 255, 0.05);
}

.hero-feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
    filter: grayscale(100%);
}

.hero-feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero-feature p {
    font-size: 14px;
    color: #666666;
}

/* ==================== BOTONES ==================== */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 40px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary {
    background: #00d4ff;
    color: #000000;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
}

/* ==================== SECCIONES ==================== */
.why-choose, .methodology, .testimonials, .services, .about-content, .contact-content {
    padding: 100px 50px;
}

.why-choose {
    background: rgba(0, 212, 255, 0.03);
}

.methodology {
    background: rgba(0, 0, 0, 0.9);
}

.testimonials {
    background: rgba(0, 212, 255, 0.03);
}

.services {
    background: rgba(10, 10, 10, 0.8);
}

.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #00d4ff;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 40px auto 60px;
    font-size: 18px;
    color: #888888;
    line-height: 1.8;
}

/* ==================== BENEFITS GRID ==================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.benefit-card {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 15px;
    padding: 35px;
    transition: all 0.3s;
}

.benefit-card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.benefit-number {
    font-size: 48px;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ffffff;
}

.benefit-card p {
    color: #888888;
    line-height: 1.6;
    font-size: 15px;
}

/* ==================== METHODOLOGY STEPS ==================== */
.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 60px auto 0;
}

.step-card {
    text-align: center;
    padding: 30px;
    border: 1px solid #222222;
    border-radius: 15px;
    background: #0a0a0a;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #00d4ff;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ffffff;
}

.step-card p {
    color: #888888;
    line-height: 1.6;
    font-size: 14px;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 60px auto 0;
}

.testimonial-card {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 15px;
    padding: 35px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
}

.testimonial-quote {
    font-size: 16px;
    color: #888888;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.author-info h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 5px;
}

.author-info p {
    color: #666666;
    font-size: 13px;
}

/* ==================== SERVICES ==================== */
.services-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.services-intro p {
    font-size: 18px;
    color: #888888;
    line-height: 1.8;
    margin-top: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    text-align: center;
    filter: grayscale(100%);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
}

.service-card p {
    color: #888888;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #222222;
}

.service-features li {
    color: #666666;
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00d4ff;
}

/* ==================== ABOUT ==================== */
.about-content {
    max-width: 1400px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 80px;
}

.about-header p {
    font-size: 20px;
    color: #888888;
    max-width: 800px;
    margin: 30px auto 0;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.about-section {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 20px;
    padding: 40px;
}

.about-section h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #ffffff;
}

.about-section p {
    font-size: 16px;
    color: #888888;
    line-height: 1.8;
    margin-bottom: 15px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.value-card {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
}

.value-card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
}

.value-card h4 {
    font-size: 20px;
    color: #00d4ff;
    margin-bottom: 15px;
}

.value-card p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.stats-section {
    background: rgba(0, 212, 255, 0.05);
    border-radius: 20px;
    padding: 60px 40px;
    margin-top: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 56px;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 10px;
}

.stat-label {
    color: #888888;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-description {
    color: #666666;
    font-size: 13px;
    line-height: 1.4;
}

.team-section {
    margin-top: 80px;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.team-intro h3 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 20px;
}

.team-intro p {
    font-size: 18px;
    color: #888888;
    line-height: 1.8;
}

/* ==================== CONTACT ==================== */
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.contact-header p {
    font-size: 20px;
    color: #888888;
    max-width: 700px;
    margin: 20px auto;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 20px;
    padding: 40px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #ffffff;
}

.info-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #222222;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item h4 {
    font-size: 16px;
    color: #00d4ff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    color: #888888;
    font-size: 15px;
    line-height: 1.6;
}

.contact-form {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 20px;
    padding: 40px;
}

.contact-form h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #ffffff;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: #000000;
    border: 1px solid #222222;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group select {
    cursor: pointer;
}

.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    color: #00d4ff;
}

.form-message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

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

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00d4ff;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== FOOTER ==================== */
footer {
    position: relative;
    z-index: 5;
    padding: 50px 50px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.9);
}

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

.footer-section h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #888888;
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #00d4ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666666;
}

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

/* Ultra Wide (2560px+) */
@media (min-width: 2560px) {
    .hero h1 { font-size: 96px; }
    .hero-logo { width: 280px; height: 280px; }
    .section-title { font-size: 64px; }
    .section-description { font-size: 24px; }
}

/* Large Desktop (1920-2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .hero h1 { font-size: 84px; }
    .hero-logo { width: 240px; height: 240px; }
    .section-title { font-size: 56px; }
}

/* Desktop (1440-1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .hero h1 { font-size: 78px; }
    .hero-logo { width: 220px; height: 220px; }
}

/* Laptop (1280-1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
    .hero h1 { font-size: 68px; }
    .hero-logo { width: 200px; height: 200px; }
}

/* Tablet Landscape (1024-1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .hero h1 { font-size: 64px; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet (768-1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    header { padding: 15px 30px; }
    nav a { margin-left: 20px; font-size: 13px; }
    .hero h1 { font-size: 56px; }
    .hero p { font-size: 20px; }
    .hero-subtitle { font-size: 18px; }
    .hero-features { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .section-title { font-size: 42px; }
    .section-description { font-size: 16px; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .methodology-steps { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .contact-grid { gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile & Tablet Portrait (600-768px) */
@media (min-width: 600px) and (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 15px 20px; }
    nav a { margin: 5px 10px; font-size: 12px; }
    .page { margin-top: 140px; }
    .hero { padding: 30px 20px; }
    .hero h1 { font-size: 42px; }
    .hero p { font-size: 18px; }
    .hero-logo { width: 150px; height: 150px; }
    .hero-features { grid-template-columns: 1fr; }
    .benefits-grid, .methodology-steps, .testimonials-grid, .services-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 36px; }
    .about-grid, .contact-grid, .values-grid { grid-template-columns: 1fr; }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 15px 20px; }
    .logo-img { width: 40px; height: 40px; }
    .logo-text { font-size: 20px; }
    nav a { margin: 5px 10px; font-size: 12px; }
    .page { margin-top: 140px; }
    .hero { padding: 30px 20px; min-height: 80vh; }
    .hero h1 { font-size: 36px; line-height: 1.2; }
    .hero p { font-size: 18px; }
    .hero-subtitle { font-size: 16px; margin-bottom: 30px; }
    .hero-logo { width: 120px; height: 120px; margin-bottom: 25px; }
    .hero-features { grid-template-columns: 1fr; gap: 20px; margin: 40px 0 30px; }
    .hero-feature { padding: 25px; }
    .hero-feature-icon { font-size: 32px; }
    .hero-feature h3 { font-size: 16px; }
    .hero-feature p { font-size: 13px; }
    .cta-buttons { flex-direction: column; gap: 15px; width: 100%; }
    .btn { width: 100%; padding: 16px 30px; font-size: 14px; }
    .section-title { font-size: 32px; padding: 0 20px; }
    .section-description { font-size: 15px; padding: 0 20px; }
    .why-choose, .methodology, .testimonials, .services, .about-content, .contact-content { padding: 60px 20px; }
    .benefits-grid { grid-template-columns: 1fr; gap: 20px; }
    .benefit-card { padding: 25px; }
    .benefit-number { font-size: 36px; }
    .benefit-card h3 { font-size: 20px; }
    .methodology-steps { grid-template-columns: 1fr; gap: 25px; }
    .step-card { padding: 25px; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
    .testimonial-card { padding: 25px; }
    .testimonial-quote { font-size: 15px; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-card { padding: 30px; }
    .service-icon { font-size: 40px; }
    .service-card h3 { font-size: 20px; }
    .service-card p { font-size: 14px; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-section { padding: 30px; }
    .about-section h3 { font-size: 26px; }
    .about-section p { font-size: 15px; }
    .values-grid { grid-template-columns: 1fr; gap: 20px; }
    .value-card { padding: 25px; }
    .stats-section { padding: 40px 20px; }
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .stat-number { font-size: 48px; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-info, .contact-form { padding: 30px; }
    .contact-info h3, .contact-form h3 { font-size: 24px; }
    footer { padding: 40px 20px 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer-section h4 { font-size: 16px; }
}

/* Mobile Large (480-600px) */
@media (min-width: 480px) and (max-width: 600px) {
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 17px; }
    .hero-logo { width: 130px; height: 130px; }
    .section-title { font-size: 30px; }
    .btn { padding: 15px 28px; font-size: 13px; }
}

/* Mobile Standard (360-480px) */
@media (min-width: 360px) and (max-width: 480px) {
    header { flex-direction: column; padding: 12px 15px; }
    .logo-img { width: 40px; height: 40px; }
    .logo-text { font-size: 20px; }
    nav a { font-size: 11px; margin: 5px 6px; }
    .hero { padding: 30px 15px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero-logo { width: 110px; height: 110px; }
    .section-title { font-size: 28px; }
    .btn { padding: 15px 28px; font-size: 13px; }
}

/* Mobile Small (280-360px) */
@media (min-width: 280px) and (max-width: 360px) {
    header { padding: 12px 15px; }
    .logo-img { width: 35px; height: 35px; }
    .logo-text { font-size: 16px; }
    nav a { font-size: 10px; margin: 5px 5px; }
    .hero h1 { font-size: 24px; line-height: 1.2; }
    .hero p { font-size: 14px; }
    .hero-logo { width: 80px; height: 80px; }
    .section-title { font-size: 22px; }
    .section-title::after { width: 60px; }
    .btn { padding: 12px 20px; font-size: 12px; }
    .benefit-number { font-size: 32px; }
    .benefit-card h3 { font-size: 18px; }
    .benefit-card p { font-size: 14px; }
    .step-number { width: 50px; height: 50px; font-size: 20px; }
    .step-card h3 { font-size: 18px; }
    .author-avatar { width: 40px; height: 40px; font-size: 16px; }
    .author-info h4 { font-size: 14px; }
    .service-card h3 { font-size: 18px; }
    .about-section h3 { font-size: 22px; }
    .value-card h4 { font-size: 18px; }
    .stat-number { font-size: 40px; }
    .stat-label { font-size: 14px; }
}

/* Pantallas muy pequeñas (<280px) */
@media (max-width: 280px) {
    body { font-size: 12px; }
    .hero h1 { font-size: 20px; }
    .hero p, .hero-subtitle { font-size: 12px; }
    .hero-logo { width: 60px; height: 60px; }
    .logo-img { width: 30px; height: 30px; }
    .logo-text { font-size: 14px; }
    .section-title { font-size: 18px; }
    .btn { padding: 10px 15px; font-size: 11px; }
    header { padding: 10px; }
    nav a { font-size: 9px; margin: 3px; }
}

/* Optimización específica para iPhone */
@supports (-webkit-touch-callout: none) {
    /* iPhone X, XS, 11 Pro, 12 Mini, 13 Mini (375px) */
    @media only screen and (max-width: 375px) {
        body { -webkit-text-size-adjust: 100%; }
        .hero h1 { font-size: 32px; line-height: 1.1; }
        .hero p { font-size: 16px; }
        .btn { -webkit-tap-highlight-color: rgba(0, 212, 255, 0.3); touch-action: manipulation; }
        input, textarea, select { font-size: 16px !important; }
    }

    /* iPhone XR, 11, 12, 13, 14 (390px - 393px) */
    @media only screen and (min-width: 376px) and (max-width: 393px) {
        .hero h1 { font-size: 34px; }
        .section-title { font-size: 28px; }
    }

    /* iPhone 14 Plus, 15 Plus, Pro Max (414px - 430px) */
    @media only screen and (min-width: 394px) and (max-width: 430px) {
        .hero h1 { font-size: 36px; }
        .section-title { font-size: 30px; }
        .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    }

    /* Safe area para notch en iPhones */
    header {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-left: max(50px, env(safe-area-inset-left));
        padding-right: max(50px, env(safe-area-inset-right));
    }

    .page {
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* Mejoras táctiles para iOS */
    a, button, .btn {
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.2);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    /* Smooth scrolling en iOS */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevenir zoom en inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Orientación landscape en móviles */
@media (orientation: landscape) and (max-height: 500px) {
    .hero { min-height: 150vh; }
    .hero h1 { font-size: 36px; margin-bottom: 15px; }
    .hero-logo { width: 100px; height: 100px; margin-bottom: 20px; }
    .hero-features { margin: 30px 0 25px; }
    header { padding: 10px 30px; }
}

/* Tablets en landscape */
@media (min-width: 600px) and (max-width: 900px) and (orientation: landscape) {
    .hero { min-height: 100vh; }
    .hero h1 { font-size: 48px; }
    .hero-features { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    header { padding: 15px 40px; }
}

/* High DPI screens (Retina, 4K) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    .circuit-line { height: 2px; }
    .hero-logo, .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reducción de movimiento para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-logo, .circuit-line {
        animation: none !important;
    }
}

/* Alto contraste para accesibilidad */
@media (prefers-contrast: high) {
    .hero-feature, .benefit-card, .step-card, .service-card {
        border-width: 2px;
    }
    .btn-primary {
        border: 2px solid #00d4ff;
    }
    .btn-secondary {
        border-width: 3px;
    }
}