/* Mi Comparador Seguro - Estilos Base */

:root {
  --background: hsl(206, 71%, 95%);
  --foreground: hsl(210, 90%, 20%);
  --card: hsl(207, 79%, 86%);
  --card-foreground: hsl(210, 90%, 20%);
  --primary: hsl(207, 77%, 41%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(207, 79%, 86%);
  --secondary-foreground: hsl(210, 90%, 25%);
  --muted: hsl(200, 60%, 92%);
  --muted-foreground: hsl(210, 50%, 45%);
  --accent: hsl(195, 90%, 50%);
  --border: hsl(200, 40%, 85%);
  --shadow-card: 0 4px 20px rgba(41, 128, 185, 0.08);
  --shadow-hover: 0 8px 30px rgba(41, 128, 185, 0.15);
  --radius: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

header .logo img {
  height: 80px;
  width: auto;
  transition: transform 0.3s;
}

header .logo img:hover {
  transform: scale(1.05);
}

header .nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

header .nav-links a {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  /*color: var(--foreground);*/
  transition: all 0.2s;
}

header .nav-links a:hover {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

header .nav-links a.active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 2px 8px rgba(41, 128, 185, 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 3rem 1rem 5rem;
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.6) 100%), url('professionals-hero.jpg');
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: -6rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-poliza {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  border: none;

  /* MISMO FORMATO RECTANGULAR */
padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
border-radius: 6px;
 
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-left: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  white-space: nowrap;
}




.btn-poliza small {
  font-size: 12px;
  font-weight: 400;
}

.btn-poliza:hover {
  opacity: 0.9;
}


/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card h3 {
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted-foreground);
}

/* Insurance Categories Grid */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  /*padding: 4rem 0;*/
}

.insurance-card {
  background: white;
  border-radius: var(--radius);
  /*padding: 2rem;*/
  overflow: hidden;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--foreground);
}

.insurance-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.insurance-card img {
  width: 100%;
  margin: -25px 0;
  object-fit: contain;
}

.insurance-card .text{
  background-color: #fff;
  position: relative;
  padding: 20px 5px 15px 5px;
}

.insurance-card a{
  display: inline;
  padding: 10px 25px;
  background-color: var(--primary);
  font-weight: bold;
  border-radius: var(--radius);
  text-decoration: none;
 color: var(--primary-foreground);
  box-shadow: var(--shadow-card);
}

.insurance-card a:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.insurance-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.insurance-card p{
  min-height: 110px;
}


/* Logos Section */
.logos-section {
  padding: 4rem 0;
  background: white;
}

.logos-section p{
  padding: 0 0 10px 0;
  background: white;
  text-align: center;
}

.logos-grid {
  /*display: grid;*/
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.logos-grid img {
  max-width: 120px;
  height: auto;
  /*opacity: 0.7;*/
  transition: opacity 0.3s;
  margin: 20px;
  display: inline-block;
}

.logos-grid img:hover {
  opacity: 1;
}

/* Footer */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 0 1rem;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--primary);
}

footer .copyright {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
  header .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
  
  .insurance-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

@media (max-width: 768px) {

  .btn-poliza {
    width: 100%;          /* SE ENSANCHA */
    height: auto;         /* DEJA CRECER */
    padding: 24px 20px;   /* MÁS AIRE */
    margin-left: 0;
    margin-top: 10px;
  }

  .poliza-linea-1 {
    font-size: 12px;
    text-align: center;
  }

  .poliza-linea-2 {
    font-size: 13px;
    margin-top: 4px;
    text-align: center;
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 420px;
  margin: 8% auto;
  padding: 25px;
  border-radius: 10px;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

.file-label {
  display: block;
  background: #f5f5f5;
  padding: 10px;
  border: 1px dashed #ccc;
  cursor: pointer;
  margin-bottom: 10px;
}

.file-label input {
  opacity: 0;
  position: absolute;
  left: -9999px;
}


.modal-content button {
  background: #ff5722;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

