html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #f0f4f8;
    background-position: 20px 1%;
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
    padding-top: 70px;
    overflow-x: hidden;
}

#contact,
#inicio {
    scroll-margin-top: 70px;
}

.container {
    background-color: #3a7bd5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0;
    height: 100vh;
    box-sizing: border-box;
}

.cunsecurity-logo {
    max-height: 70px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background-color: #3a7bd5;
    color: white;
}

.text-content h1 {
    font-size: 2.5em;
    margin: 0.2em 0;
}

.text-content h2 {
    font-size: 3em;
    margin: 0.2em 0;
    font-weight: 200;
}

.text-content h3 {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 500px;
    font-weight: 400;
    margin: 0.2em 0;
}

.container .text-content h1,
.container .text-content h2,
.container .text-content h3,
.container .text-content p,
.container .text-content p a {
    color: white !important;
}

.image-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.image-content img {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease-in-out;
}

.image-content img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.horizontal-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 40px;
}

.item {
  flex: 0 0 calc(50% - 20px); 
  max-width: 330px;
  min-width: 250px;
  text-align: center;
  font-size: 1.5rem;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Icono */
.item h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Título */
.item h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

/* Texto */
.item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

/* Efecto hover */
.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.horizontal-container .item h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.contact-form {
    margin-top: -10px;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
}

.contact-form h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: #fff;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3a7bd5;
    box-shadow: 0 4px 8px rgba(58, 123, 213, 0.2);
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: #3a7bd5;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background-color: #2e6bbf;
    transform: scale(1.05);
}

.contact-form button:active {
    transform: scale(0.95);
}

.why-cunsec {
    background-color: #3a7bd5;
    padding: 40px 20px;
    text-align: center;
}

.why-cunsec h2,
.why-cunsec li,
.why-cunsec p,
.why-cunsec a {
    color: #fefefe;
}

.why-cunsec ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 20px auto;
}

.why-cunsec li {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.pricing {
    background-color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

.pricing-table {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.plan {
    background-color: #f3f2f2;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    width: calc(33.33% - 20px);
    box-sizing: border-box;
}

.floating-button,
.floating-button img {
    border-radius: 50%;
}

.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.floating-button:hover {
    transform: scale(1.1);
}

.floating-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-button {
    width: 35px;
    height: 35px;
    bottom: 50px;
    right: 50px;
}

.site-footer {
    background-color: #f58220;
    color: white;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    position: relative;
    bottom: 0;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/*------------------- MQ 768-------------------*/
@media (max-width: 768px) {
    /* ===== NAVIGATION ===== */
    nav {
      flex-direction: column;
      padding: 10px 5px;
    }
  
    nav ul {
      flex-wrap: wrap;
      justify-content: center;
      gap: 5px;
    }
  
    nav li {
      min-width: 85px;
      text-align: center;
      font-size: 12px;
    }
  
    .logo {
      max-height: 26px;
    }
  
    /* ===== CONTENEDOR PRINCIPAL ===== */
    .container {
      flex-direction: column;
      min-height: 100vh;
      padding: 25px 12px;
      gap: 20px;
      box-sizing: border-box;
      background-color: #3a7bd5;
      text-align: center;
    }
  
    .text-content {
      padding: 10px;
      align-items: center;
      justify-content: center;
    }
  
    .text-content h1 {
      font-size: 2.4rem;
      margin: 0.4rem 0;
      word-break: break-word;
    }
  
    .text-content h2 {
      font-size: 2rem;
      margin: 0.4rem 0;
      text-align: center;
    }
  
    .text-content h2 img {
      max-width: 70%;
      height: auto;
      display: block;
      margin: 0 auto;
    }
  
    .text-content h3 {
      font-size: 1.1rem;
      line-height: 1.6;
      text-align: justify;
      padding: 0 12px;
      margin: 0.5rem 0;
    }
  
    .image-content {
      clip-path: none;
      background-image: url('../img/fondo.jpg');
      background-size: cover;
      background-position: center;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
      padding: 0;
      width: 100%;
      max-width: 90%;
      margin: 0 auto;
      display: flex;
      justify-content: center;
    }
  
    .image-content img {
      max-width: 65%;
      height: auto;
      display: block;
    }
  
    .horizontal-container {
      flex-direction: column;
      gap: 20px;
      padding: 0 15px;
    }
  
    .item {
      width: 100%;
      margin: 0 auto;
    }
  
    html, body {
      overflow-x: hidden;
      overflow-y: auto;
      height: auto;
    }
  }  

/*------------------- MQ 480-------------------*/
@media (max-width: 480px) {
    /* ===== NAVEGACIÓN ===== */
    nav {
        flex-direction: column;
        padding: 6px 8px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        padding: 0;
        margin: 0;
    }

    nav li {
        min-width: 75px;
        font-size: 11px;
        text-align: center;
        margin: 2px 0;
    }

    nav a {
        font-size: 12px;
        padding: 4px 6px;
    }

    .logo {
        max-height: 22px;
        margin-bottom: 4px;
    }

    /* ===== CONTENEDOR PRINCIPAL - Sección de Introducción ===== */
    .container {
        flex-direction: column;
        /* min-height: calc(100vh - 60px); */
        padding: 30px 15px;
        gap: 25px;
        box-sizing: border-box;
        background-color: #3a7bd5;
        text-align: center;
        justify-content: center;
    }

    .text-content {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .text-content h1 {
        font-size: 2.2rem;
        margin: 0.5rem 0;
        word-break: break-word;
        line-height: 1.2;
    }

    .text-content h2 {
        font-size: 1.6rem;
        margin: 0.5rem 0;
        text-align: center;
    }

    .text-content h2 img.cunsecurity-logo {
        max-width: 70%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .text-content h3 {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
        padding: 0 5px;
        margin: 0.6rem 0;
    }

    .text-content p a {
        font-size: 1.1rem;
        margin-top: 15px;
        display: inline-block;
        color: #fff;
        text-decoration: underline;
    }

    .text-content h3:last-of-type {
        font-size: 0.9rem;
        margin-top: 10px;
        color: rgba(255, 255, 255, 0.8);
    }

    .image-content {
        clip-path: none;
        /* background-image: url('../img/fondo.jpg'); */
        background-size: cover;
        background-position: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        padding: 0;
        width: 90%;
        max-width: 300px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 10px;
        overflow: hidden;
    }

    .image-content img#otter-mascot {
        max-width: 90%;
        height: auto;
        display: block;
        margin: 0 auto;
        padding: 15px 0;
    }

    /* ===== SECCIÓN DE ITEMS ===== */
    .horizontal-container {
        flex-direction: column;
        gap: 20px;
        padding: 10px 2px;
        background-color: #f0f2f5;
        align-items: center;
        justify-content: center;
    }

    .item {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        background-color: #fff;
        text-align: center;
    }

    .item h1 {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .item h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        color: #333;
    }

    .item p {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #555;
    }

    /* ===== HTML/BODY GENERAL ===== */
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        scroll-behavior: smooth;
    }

/*------------------- MQ 769px y 1024px-------------------*/
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 20px;
      padding: 30px 20px;
      min-height: 100vh;
    }
  
    .text-content h1 {
      font-size: 3rem;
    }
  
    .text-content h2 {
      font-size: 2.4rem;
    }
  
    .text-content h3 {
      font-size: 1.1rem;
      padding: 0 20px;
    }
  
    .image-content img {
      max-width: 60%;
    }
  
    nav ul {
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }
  
    nav li {
      min-width: 90px;
      font-size: 13px;
    }
  }

  /* ===== MQ 1024px (Tablets horizontales como iPad Pro) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    nav {
      flex-direction: column;
      padding: 10px 10px;
    }
  
    nav ul {
      flex-wrap: wrap;
      justify-content: center;
      gap: 6px;
    }
  
    nav li {
      min-width: 90px;
      text-align: center;
      font-size: 13px;
    }
  
    .logo {
      max-height: 30px;
      margin-bottom: 4px;
    }
  
    .container {
      flex-direction: column;
      height: auto;
      padding: 40px 20px;
      gap: 30px;
      text-align: center;
    }
  
    .text-content {
      padding: 20px;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
  
    .text-content h1 {
      font-size: 3.2rem; /* Más grande que h2 */
      margin: 0.4rem 0;
    }
  
    .text-content h2 {
      font-size: 2.5rem;
      margin: 0.4rem 0;
      text-align: center;
    }
  
    .text-content h2 img {
      max-width: 75%;
      height: auto;
      display: block;
      margin: 0 auto;
    }
  
    .text-content h3 {
      font-size: 1.2rem;
      line-height: 1.6;
      text-align: justify;
      padding: 0 20px;
      margin: 0.5rem 0;
    }
  
    .image-content {
      clip-path: none;
      background-image: url('../img/fondo.jpg');
      background-size: cover;
      background-position: center;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
      padding: 0;
      width: 100%;
      max-width: 70%;
      margin: 0 auto;
      display: flex;
      justify-content: center;
    }
  
    .image-content img {
      max-width: 65%; /* Más pequeño para evitar desbordamiento */
      height: auto;
      display: block;
    }
  
    .item {
      width: 100%;
      margin: 0 auto;
    }
  }
}