/* Añadir al inicio del CSS */
@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .container {
        padding: 0 15px;

    }
    
    /* Hero section para móviles pequeños */
    .hero-image img {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Ajustes para cards en móviles */
    .services-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Planes en móviles */
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Contacto en móviles */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Footer en móviles */
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Botones en móviles */
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --gold: #867443;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    
}

/* iOS Fix */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll !important;
    }
}

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

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--gold);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2px 0;
    background-color: rgba(202, 189, 172, 0.803);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--white);
    font-size: 1.1rem;
    position: relative;
    padding: 2px 0;
    transition: color 0.3s ease;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */


    
    #hero {
        min-height: 100vh;
        background-image: url("img/Fondo.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll; /* mejor para iOS */
        display: flex;
        align-items: center;
        padding-top: 80px; /* deja espacio para header fijo */
    }

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
    justify-content: center;
    width: 100%;
    
        margin-bottom: 0;
        padding-bottom: 0;
    }
    


.hero-text {
    flex: 0 1 auto;
    max-width: 600px;
    text-align: left;
}

.hero-image {
    flex: 0 1 auto;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    display: block;
    max-width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
    margin-bottom: 0; /* asegurarse de que no haya margen extra */
}


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

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Services Section */
#services {
    background-color: #b9eafb;
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: -1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Sección de Planes */
.plans-section {
    background-color: #f8fafc;
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.plan-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.plan-card.featured {
    border: 2px solid #2563eb;
}

.plan-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: #2563eb;
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    transform-origin: center;
}

.plan-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.plan-header h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 10px;
}

.plan-price {
    margin: 15px 0;
}

.plan-price .price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2563eb;
}

.plan-price .period {
    display: block;
    color: #64748b;
    font-size: 1rem;
}

.plan-features {
    padding: 25px 30px;
    flex-grow: 1;
}

.plan-features ul {
    list-style: none;
}

.plan-features li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: #1e293b;
}

.plan-features i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #2563eb;
}

.plan-footer {
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.plan-recommendation {
    font-style: italic;
    color: #64748b;
    margin-bottom: 15px;
}

.plan-btn {
    width: 100%;
    padding: 12px;
}

.plan-includes {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.plan-includes p {
    margin-bottom: 10px;
    color: #1e293b;
}

.plan-includes i {
    color: #2563eb;
    margin-right: 8px;
}

/* Projects Section */
#projects {
    background-color: #ced4d7;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
    height:;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
}

.project-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tag {
    background-color: var(--light-gray);
    color: var(--dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Section */
#contact {
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--primary);
    width: 30px;
    text-align: center;
}

.fab.fa-whatsapp {
    color: #25D366;
    font-size: 24px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--dark);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--light-gray);
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Botón de modo noche */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Estilos para el modo noche */
.dark-mode {
    --dark: #f8fafc;
    --light: #1e293b;
    --gray: #94a3b8;
    --light-gray: #334155;
    --white: #0f172a;
    --gold: #d1a054;
    background-image: none;
    background-color: #0f172a;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode p {
    color: #f8fafc;
}

.dark-mode .service-card,
.dark-mode .project-card,
.dark-mode .contact-form,
.dark-mode .plan-card {
    background-color: #1e293b;
    border-color: #334155;
}

.dark-mode .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.dark-mode .plans-section {
    background-color: #0f172a;
}

.dark-mode .plan-card {
    background-color: #1e293b;
    color: #f8fafc;
}

.dark-mode .plan-features li,
.dark-mode .plan-header h3,
.dark-mode .plan-price .price,
.dark-mode .plan-includes p {
    color: #f8fafc;
}

.dark-mode .plan-includes {
    background-color: #1e293b;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .hero-text {
        max-width: 500px;
    }
    .hero-image {
        max-width: 400px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        text-align: center;
        max-width: 100%;
        padding: 0 20px;
    }
    .hero-image {
        margin-top: 30px;
    }
    
    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu-btn i.fa-times {
        font-size: 1.8rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .plan-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .service-card, .project-card {
        padding: 20px;
    }
    
    .plan-includes {
        padding: 15px;
    }
}



/* Ajustes específicos para tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Ajustar tamaño de imágenes en proyectos */
    .project-image {
        height: 200px;
    }
}

/* Ajustes para imágenes en proyectos */
.project-image {
    height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Mejoras para el menú móvil */
.nav-links {
    transition: all 0.3s ease-in-out;
}

.mobile-menu-btn.active i.fa-bars {
    display: none;
}

.mobile-menu-btn i.fa-times {
    display: none;
}

.mobile-menu-btn.active i.fa-times {
    display: block;
}

/* Ajustes para el modo oscuro */
.dark-mode {
    background-color: #0f172a;
    color: #f8fafc;
}

.dark-mode .service-card,
.dark-mode .project-card,
.dark-mode .plan-card {
    background-color: #1e293b;
    border-color: #334155;
}

.dark-mode .contact-form {
    background-color: #1e293b;
    color: #f8fafc;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background-color: #334155;
    color: #f8fafc;
    border-color: #475569;
}

/* Mejoras para el hero en dispositivos verticales */
@media (max-height: 700px) and (orientation: portrait) {
    #hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
}

/* Ajustes para iPad Pro en landscape */
@media (width: 1024px) and (height: 1366px) {
    .hero-content {
        flex-direction: row;
    }
}





  
  /* Para dispositivos iOS */
  @supports (-webkit-touch-callout: none) {
    body {
      background-attachment: scroll;
    }
  }

  /* Ajustar el contenedor principal */
.main-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Asegurar que los textos sean legibles */
  .text-content {
    font-size: clamp(16px, 2.5vw, 18px);
    line-height: 1.5;
  }
  
  /* Botones y elementos táctiles */
  button, a {
    min-height: 44px; /* Tamaño mínimo recomendado para touch */
  }

  
  
  
  
  .bg-fallback {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .bg-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  