* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
}


.hero {
  height: calc(100vh - 80px);
  background-image: url('https://southcoastimprovement.com/wp-content/uploads/2025/03/8254661.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: 250px;
}


.card {
  width: 40%;
  background-color: #fff;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translateY(10%);
  z-index: 2;
  border-left: 5px solid #002855;
}

.card h1 {
  font-size: 36px;
  color: #002855;
  margin-bottom: 10px;
  line-height: 1.2;
}

.card span {
  color: #8A2B25;
}

.card hr {
  margin: 20px 0;
  border: none;
  height: 2px;
  width: 40px;
  background-color: #002855;
}

.card p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

.btn {
  background-color: #8A2B25;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  font-weight: bold;
}
@media screen and (max-width: 1024px) {
  .card {
    width: 70%;
    left: 50%;
    transform: translate(-50%, -10%);
    top: 50%;
    padding: 30px;

  }

  .card h1 {
    font-size: 28px;
    text-align: center;
  }

  .card p {
    font-size: 15px;
    text-align: center;
  }

  .card .btn {
    display: block;
    margin: 0 auto;
    text-align: center;
  }
}

@media screen and (max-width: 600px) {
  .card {
    width: 90%;
    padding: 20px;
  }

  .card h1 {
    font-size: 24px;
  }

  .card p {
    font-size: 14px;
  }
}

.servicios{
    background-color: #0B1F5B;
   height: 60vh;
}
.servicios h2{
    margin: 20px;
    padding: 20px;
    color: white;
}
.servicios p{
    margin: 20px;
    padding: 20px;
    color: white;
}
.tarjetas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.carta {
  background-color: #f8f8f8;
  color: #000;
  padding: 25px;
  width: 300px;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.2s ease;
  transform: translateY(-20%);
}

.carta:hover {
  transform: translateY(-5px);
}

.carta h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.carta p {
  font-size: 0.95rem;
  line-height: 1.5;
}


@media screen and (max-width: 768px) {
  .carta {
    width: 90%;
    transform: translateY(-5%);
  }
}
.contacto {
  background-color: #0f225c;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.contacto h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 1px;
}

.formulario {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.campo-doble {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.campo {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.campo label {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.campo input,
.campo textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  color: white;
  font-size: 1rem;
  padding: 8px 4px;
  outline: none;
}

.campo input:focus,
.campo textarea:focus {
  border-bottom: 1px solid white;
}

.enviar[type="submit"] {
  background-color: white;
  color: #0f225c;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.enviar[type="submit"]:hover {
  background-color: #e0e0e0;
}


@media (max-width: 600px) {
  .campo-doble {
    flex-direction: column;
  }
}


.footer {
  background-color: #0B1F5B; 
  color: white;
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  bottom: 0%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: center;
  max-width: 1100px;
  margin: auto;
}

.footer-column {
  flex: 1 1 300px;
  margin: 10px;
}

.footer-column p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-btn {
  background-color: #1c2e70;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}


.footer-social {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}


@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-social {
    position: static;
    margin-top: 20px;
    flex-direction: row;
    justify-content: center;
  }
}
