/* styles.css */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
  }
  
  /* Navbar */
  .navbar {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f45a2a;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }
  
  .cta-button {
    background-color: #f45a2a;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
  }
  
  /* Hero */
  .hero {
    display: flex;
    flex-direction: column; /* stack por default */
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #f0f0f0;
    text-align: center;
  }
  
  .hero-text {
    flex: 1;
    margin-left: 15rem;
    padding-right: 2rem;
    max-width: 500px;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
    color: #000;
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    font-size: 1.2rem;
    color: #555;
  }
  
  .hero-image img {
    width: 100%;
    max-width: 680px;
  }
  
  /* Stats */
  .stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1rem;
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }
  
  .stat {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f45a2a;
    text-align: center;
  }
  
  .stat span {
    display: block;
    font-size: 0.9rem;
    color: #333;
  }
  
  /* Sections */
  .section {
    padding: 3rem 2rem;
    text-align: center;
    scroll-margin-top: 80px;
  }
  
  .section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #111;
  }
  
  .section p, .section li {
    max-width: 700px;
    margin: 0 auto 1rem;
    font-size: 1rem;
    color: #555;
  }
  
  /* Projects */
  .projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
  }
  
  .project-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    width: 250px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }
  
  .project-card h3 {
    color: #f45a2a;
    margin-bottom: 0.5rem;
  }
  
  /* Contact */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto 0;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
  }
  
  .contact-form button {
    background-color: #f45a2a;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
  }
  
  /* Footer */
  footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #777;
    margin-top: 3rem;
  }
  

  .modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }

  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
  }

  .close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
  }

  .close:hover {
    color: #f45a2a;
  }

  .btn-modal {
    background-color: #f45a2a;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
  }

  .btn-modal:hover {
    background-color: #d6481e;
  }

  .services-section {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
  }
  
  .services-section .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .services-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #222;
  }
  
  .services-section p {
    color: #555;
    margin-bottom: 40px;
  }
  
  .cards-container {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .service-card {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
  }
  
  .service-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
  }
  
  .service-card .icon {
    font-size: 36px;
    margin-bottom: 10px;
    color: #f45a2a;
  }
  
  .service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
  }
  
  .service-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
  }
  
  .service-card ul {
    padding-left: 18px;
    margin-bottom: 20px;
    color: #444;
    font-size: 0.9rem;
  }
  
  .service-card ul li {
    margin-bottom: 6px;
    list-style-type: disc;
  }
  
  .btn-card {
    display: inline-block;
    background-color: #f45a2a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  
  .btn-card:hover {
    background-color: #d9481e;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .lang-dropdown {
    position: relative;
  }
  
  .lang-toggle {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
  }
  
  .lang-toggle img {
    height: 24px;
    width: auto;
  }
  
  .arrow-down {
    font-size: 0.75rem;
    color: #333;
  }
  
  .lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px;
    z-index: 9999;
  }
  
  .lang-menu li {
    list-style: none;
  }
  
  .lang-menu button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
  }
  
  .lang-menu img {
    height: 24px;
    width: auto;
  }
  
  /* Mostrar menú al hacer hover */
  .lang-dropdown:hover .lang-menu {
    display: block;
  }

  .whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background-color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
  }
  
  .whatsapp-button:hover {
    transform: scale(1.1);
  }
  
  .whatsapp-button img {
    width: 32px;
    height: 32px;
  }
  /* ============================== */
/* 📱 Responsive design - tablets */
/* ============================== */
@media (max-width: 1024px) {
  .hero {
    padding: 3rem 2rem;
  }

  .hero-text {
    margin-left: 0;
    padding: 0;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-image img {
    max-width: 100%;
  }
}

/* ============================= */
/* 📱 Responsive design - móviles */
/* ============================= */
@media (max-width: 768px) {
  /* 🔹 Navbar */
  .nav-links {
    display: none; /* ocultamos enlaces */
  }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
  }

  .cta-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  /* 🔹 Hero section */
  .hero {
    flex-direction: column;
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .hero-text {
    margin: 0;
    padding: 0;
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-image {
    margin-top: 2rem;
  }

  .hero-image img {
    width: 100%;
    height: auto;
  }

  /* 🔹 Section padding */
  .section {
    padding: 2rem 1rem;
  }

  /* 🔹 Footer */
  footer {
    font-size: 0.8rem;
    padding: 1rem 0.5rem;
  }

  /* 🔹 Contact modal */
  .modal-content {
    margin: 20% auto;
    width: 90%;
  }

  /* 🔹 Success message */
  #successMessage {
    font-size: 0.9rem;
    padding: 10px 15px;
  }

  /* 🔹 Loading overlay text */
  #loadingOverlay {
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) {
  .hero {
    flex-direction: row;
    justify-content: space-between;
    padding: 4rem 6rem;
    text-align: left;
  }

  .hero-text {
    flex: 1;
    margin-left: 0;
    padding-right: 2rem;
    max-width: 50%;
  }

  .hero-image {
    flex: 1;
    max-width: 50%;
    text-align: right;
  }

  .hero-image img {
    width: 100%;
    height: auto;
  }
}