* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

header {
    background: linear-gradient(135deg, #082070, #1a06cf);
    padding: 10px 0;
}

.logo-teulada {
    color: #ffffff;
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .logo-teulada {
        font-size: 1.3rem;
    }
}

@media (min-width: 769px) {
    .logo-teulada {
        font-size: 1.4rem;
    }
}

@media (min-width: 1200px) {
    .logo-teulada {
        font-size: 1.6rem;
    }
}

.container-teulada {
    width: 100%;
    height: 20vh;
    display: flex;
    flex-direction: column;
}

.franja-teulada {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}


@media (max-width: 768px) {
    .franja-teulada {
        height: 24vh;
        display: flex;
    }
}

@media (min-width: 769px) {
    .franja-teulada {
        height: 21vh;
        display: flex;
    }
}

@media (min-width: 1200px) {
    .franja-teulada {
        height: 18vh;
    }
}

.animated-text-teulada {
    font-size: 2rem;
    font-weight: bold;
    color: rgb(241, 213, 0);
    position: relative;
    animation: fadeIn 2s;
}

@keyframes fadeIn {
    0% {
        transform: translateY(200%);
        opacity: 0;
    }

    25% {
        transform: translateY(100%);
        opacity: 1;
    }

    50% {
        transform: translateY(0);
        opacity: 1;
    }

    75% {
        transform: translateY(-100%);
        opacity: 1;
    }

    100% {
        transform: translateY(-200%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .animated-text-teulada {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .animated-text-teulada {
        font-size: 1.6rem;
    }
}

.call-container {
    display: flex;
    justify-content: center;
    color: white;
    align-items: center;
    height: 10vh;
}

.call-button {
    background-color: rgb(239, 225, 97);
    color: rgb(36, 33, 33);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.call-button:hover {
    background-color: #059505;
}

@media (max-width: 768px) {
    .call-button {
        padding: 12px 25px;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .call-button {
        padding: 15px 30px;
        font-size: 1.5rem;
    }
}

.bounce-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 255, 255);
    height: 10vh;
}

.bounce-teulada {
    font-size: 2rem;
    font-weight: bold;
    color: #130066;
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .bounce-teulada {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .bounce-teulada {
        font-size: 1.3rem;
    }
}

.independent-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.independent-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 30vh;
    padding: 20px;
    background-color: rgb(255, 255, 255);
}

.independent-container {
    max-width: 800px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333;
}

.independent-title {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: #0f0f0f;
}

.independent-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 768px) {
    .independent-title {
        font-size: 1.5rem;
    }

    .independent-text {
        font-size: 1.2rem;
    }

    .independent-container {
        padding: 15px;
    }
}

@media (min-width: 769px) {
    .independent-title {
        font-size: 1.6rem;
    }

    .independent-text {
        font-size: 1.3rem;
    }
}


#responsive-section {
    display: auto;
    background-color: #f4f4f4;
    padding: 20px;
    margin: 10px;
    text-align: center;
    max-width: 100%;
}

#responsive-section h1 {
    font-size: 1.7rem; 
    color: #333;
    margin-bottom: 10px;
}

#responsive-section p {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.5;
}

@media (min-width: 768px) {
    #responsive-section h1 {
        font-size: 1.6rem;
    }
    #responsive-section p {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    #responsive-section h1 {
        font-size: 1.5rem;
    }

    #responsive-section p {
        font-size: 1.2rem;
    }
}

.sectiontree {
    text-align: center;
    padding: 20px;
    max-width: 90%;
    margin: auto;
    background-color: #f0f4f8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
}

.treetittle {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.treetext {
    font-size: 1.3rem;
    color: #34495e;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 2s ease-in-out 1 forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .treetittle {
        font-size: 1.6rem;
    }

    .treetext {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .treetittle {
        font-size: 1.5rem;
    }

    .treetext {
        font-size: 1.2rem;
    }
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
  
.slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Efecto de rebote */
}
  
.slide {
    min-width: 100%;
    position: relative;
}
  
img {
    width: 100%;
    border-radius: 10px;
}
  
.caption {
    position: absolute;
    bottom: 30px;
    left: 50px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    max-width: 300px;
    font-size: 1rem;
}
  
h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}
  
.navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}
  
.navigation button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.6rem;
    color: #333;
    pointer-events: auto;
    transition: background-color 0.3s ease;
}
  
.navigation button:hover {
    background-color: rgba(255, 255, 255, 1);
}
  
@media (max-width: 768px) {
    .caption {
      bottom: 15px;
      left: 20px;
      font-size: 0.9rem;
    }
  
    h2 {
      font-size: 1.8rem;
    }
}
  
@media (max-width: 480px) {
    .caption {
      bottom: 10px;
      left: 10px;
      font-size: 0.8rem;
    }
  
    h2 {
      font-size: 1.4rem;
    }
}


.mapateulada {
    display: auto;
    justify-items: center;
    margin-left: 100px;
    border-radius: 50%; 
}

.elegant-footer {
    background: linear-gradient(135deg, #082070, #1a06cf);
    color: #ecf0f1;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.footer-text {
    margin: 0;
    color:#f0f4f8;
    font-size: 1.3rem;
}

.image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-description {
    color:#000000;
    font-size: 1.4rem;
}

.image-container {
    width: 100%;
    max-width: 229px;
    background-color: #ecf0f1;
}

.responsive-image {
    width: 100%;
    height: 299px;
    border-radius: 10px;
}

.text-container {
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #000000;
}

p {
    font-size: 1rem;
    color: #f0e6e6;
}

/* Estilos para pantallas más grandes (tablets y desktop) */
@media (min-width: 768px) {
    .image-section {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 40px;
    }

    .text-container {
        text-align: left;
        max-width: 400px; /* Ajusta según sea necesario */
    }

    h2 {
        font-size: 1.6rem;
    }

    p {
        font-size: 1.1rem;
    }
}

.whatsapp-cta-section {
  padding: 2rem 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  text-align: center;
}

.whatsapp-cta-container {
  max-width: 480px;
  margin: 0 auto;
}

.whatsapp-cta-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #e6dada;
}

.whatsapp-cta-subtext {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #e6dada;
}

.whatsapp-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: #0a8b39;
  color: white;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.whatsapp-cta-button:hover,
.whatsapp-cta-button:focus {
  background-color: #1ebe5d;
  transform: translateY(-2px);
  outline: none;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Responsive for larger screens */
@media (min-width: 768px) {
  .whatsapp-cta-heading {
    font-size: 2rem;
  }

  .whatsapp-cta-subtext {
    font-size: 1.25rem;
  }

  .whatsapp-cta-button {
    font-size: 1.35rem;
    padding: 1rem 2rem;
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}