/* Importar la fuente Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* --- Estilos Generales --- */
body {
    font-family: 'Inter', "Source Sans Pro", Helvetica, sans-serif;
}

/* Ajuste de padding para secciones principales */
#main > .main {
    padding: 4em 3em 2em 3em;
}
@media screen and (max-width: 1280px) {
    #main > .main { padding: 3.5em 2.5em 1.5em 2.5em; }
}
@media screen and (max-width: 980px) {
    #main > .main { padding: 3em 2em 1em 2em; }
}
@media screen and (max-width: 736px) {
    #main > .main { padding: 2.5em 1.5em 0.5em 1.5em; }
}
@media screen and (max-width: 480px) {
    #main > .main { padding: 2em 1em 0.5em 1em; }
}

/* --- Botón hamburguesa --- */
.nav-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

@media (max-width: 768px) {
    .nav-toggle { display: block !important; }

    #nav {
        display: none !important;
    }

    #nav.active {
        display: flex !important;
        flex-direction: column;
        background: rgba(0,0,0,0.95);
        position: fixed;
        top: 60px;
        right: 0;
        width: 220px;
        padding: 1em;
        border-radius: 8px 0 0 8px;
    }

    #nav ul {
        flex-direction: column;
        gap: 1em;
    }

    #nav a {
        color: white;
        font-weight: bold;
    }
}

@media (min-width: 769px) {
    .nav-toggle { display: none !important; }
}

/* --- Header (texto blanco) --- */
#header, 
#header h1, 
#header p {
    color: #fff !important;
}

/* --- Tarifario (responsive tables) --- */
@media (max-width: 768px) {
    .tarifario-table thead { display: none; }
    .tarifario-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        padding: 10px;
        background-color: #fff;
        cursor: pointer;
        transition: background-color 0.2s ease-in-out;
    }
    .tarifario-table tr:hover { background-color: #f0f0f0; }
    .tarifario-table td {
        display: block;
        text-align: right;
        font-size: 0.95em;
        padding: 8px 5px;
        border-bottom: none;
    }
    .tarifario-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        margin-right: 10px;
        color: #444;
    }
    .tarifario-table td[data-label="Servicio"]:before { content: ""; }
    .tarifario-table td[data-label="Servicio"] {
        text-align: left;
        font-weight: bold;
        font-size: 1.05em;
    }
    .tarifario-table td:last-child {
        text-align: right;
        font-size: 1.1em;
        color: #007bff;
    }
    .tarifario-table td:last-child:before {
        content: "Precio: ";
        color: #555;
    }
}
.tarifario-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.tarifario-table tbody tr:hover { background-color: #e6f2ff; }

/* --- Proyectos intro --- */
.projects-intro-section {
    text-align: center;
    padding: 40px 15px;
}
.projects-intro-section .major h2 {
    margin-bottom: 20px;
}

/* --- Formulario de cotización --- */
.form-container {
    margin-top: 40px;
    margin-bottom: 30px;
    background-color: #f0f4f8;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    color: #333;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.4s ease, visibility 0s linear 0.4s, transform 0.4s ease, max-height 0.4s ease-out;
    max-height: 0;
    overflow: hidden;
}
.form-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    max-height: 1500px;
    transition: opacity 0.4s ease, visibility 0s linear 0s, transform 0.4s ease, max-height 0.4s ease-in;
}
.form-container h2 {
    margin-bottom: 25px;
    font-size: 1.6rem;
    color: #333;
    text-align: center;
    font-weight: 600;
}
.form-container label { font-weight: 600; color: #444; }
.form-container input, .form-container select, .form-container textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccd1d9;
    border-radius: 6px;
    background-color: #fff !important;
    color: #333 !important;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-container input:focus, 
.form-container select:focus, 
.form-container textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}
.form-container .submit-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-weight: 600;
    margin-top: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.form-container .submit-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* --- Proyectos (grid) --- */
#projects {
    background-color: #ffffff !important;
    color: #333;
    padding: 40px 15px;
}
.projects-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    border-bottom: 2px solid #ccc;
    padding-bottom: 15px;
    font-weight: 600;
}
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px 0;
}
.project-item {
    background-color: #fff;
    color: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.project-item img { width: 100%; height: auto; object-fit: cover; }

/* --- Botón WhatsApp flotante --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #1DA851;
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* --- Utilidad por defecto --- */
.mobile-only { display: none; }

/* --- Ajustes Mobile (<= 768px) --- */
@media (max-width: 768px) {

#.actions special{
    display: none !important;
}
  /* 1) Ocultar sección #second en móviles */
  #second { 
    display: none !important;
  }

  /* 2) Tarifario: dejar solo "🌐 DISEÑO Y DESARROLLO WEB", su párrafo y el botón de calcular */
  /* Oculta el header general "🎨 Tarifario de Servicios" */
  #tarifario > header.major {
    display: none !important;
  }

  /* Oculta todas las tablas (gráfico, web, servicios adicionales) y botones de cotizar general */
  #tarifario .tarifario-table,
  #tarifario .cotizar-btn,
  #tarifario .form-container {
    display: none !important;
  }

  /* Oculta por defecto todos los h2 de secciones dentro de tarifario */
  #tarifario h2.tarifario-section-h2 {
    display: none !important;
  }

  /* Muestra SOLO el primer h2 de sección dentro de #tarifario (es "🌐 DISEÑO Y DESARROLLO WEB") */
  #tarifario > h2.tarifario-section-h2:first-of-type {
    display: block !important;
  }

  /* Párrafos: oculta todos por defecto dentro de tarifario... */
  #tarifario p {
    display: none !important;
  }

  /* ...pero muestra el párrafo inmediatamente después del h2 de "Web" (el de la calculadora) */
  #tarifario h2.tarifario-section-h2 + p {
    display: block !important;
  }

  /* Copy adicional SOLO móvil que agregaste en el HTML */
  #tarifario .mobile-only {
    display: block !important;
  }
}

