/*
 * CSS Cotizador Automático de DeunaTesis
 * Tema: deunatesis
 */

.cot-wrapper {
	font-family: "Dosis", sans-serif;
	color: #333;
	overflow-x: hidden;
	width: 100%;
	max-width: 100vw;
}
.cot-wrapper * {
	box-sizing: border-box;
}
.cot-wrapper h1, .cot-wrapper h2, .cot-wrapper h3, .cot-wrapper h4, .cot-wrapper h5, .cot-wrapper h6 {
	font-family: "Montserrat", sans-serif;
}

html.dark .cot-wrapper {
	color: #fff;
}

/* =========================================================
 * Layout General
 * ========================================================= */
.cot-hero {
	background: linear-gradient(135deg, #5d005d 0%, #da5398 100%);
	color: #fff;
	padding: 24px 0 18px;
	margin-top: 0 !important;
	margin-bottom: 0;
	border-bottom: 4px solid rgba(93, 0, 93, 0.15);
}
.cot-hero .hero-h1 {
	color: #fff;
	font-weight: 800;
}
.cot-hero .hero-subtitle {
	color: rgba(255,255,255,0.9);
}

.cot-app-section {
	padding: 36px 0 48px;
	background-color: #f0f2f5;
	background-image: none !important;
}

html.dark .cot-app-section {
	background-color: #121212;
	background-image: none !important;
}

.cot-wizard {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.cot-main-panel {
	flex: 1;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.06);
	padding: 24px;
}

html.dark .cot-main-panel {
	background: #1e1e1e;
	box-shadow: 0 10px 40px rgba(0,0,0,0.4);
	border: 1px solid rgba(255,255,255,0.05);
}

.cot-sidebar {
	width: 400px;
	flex-shrink: 0;
}

/* =========================================================
 * Stepper
 * ========================================================= */
.cot-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
	position: relative;
}

.cot-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	position: relative;
	z-index: 2;
	width: 80px;
}

.cot-step-circle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e9ecef;
	color: #6c757d;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-family: "Montserrat", sans-serif;
	transition: all 0.3s ease;
	font-size: 14px;
}

html.dark .cot-step-circle {
	background: #2d2d2d;
	color: #adb5bd;
}

.cot-step.active .cot-step-circle {
	background: #5d005d;
	color: #fff;
	box-shadow: 0 0 0 4px rgba(93, 0, 93, 0.2);
}

.cot-step.completed .cot-step-circle {
	background: #da5398;
	color: #fff;
}

.cot-step-label {
	font-size: 12px;
	font-weight: 600;
	color: #6c757d;
	text-align: center;
}

html.dark .cot-step-label {
	color: #adb5bd;
}

.cot-step.active .cot-step-label {
	color: #5d005d;
}

html.dark .cot-step.active .cot-step-label {
	color: #da5398;
}

.cot-step-line {
	flex: 1;
	height: 3px;
	background: #e9ecef;
	margin: 0 10px;
	position: relative;
	top: -10px;
	transition: background 0.3s ease;
}

html.dark .cot-step-line {
	background: #2d2d2d;
}

.cot-step-line.active {
	background: #da5398;
}

/* =========================================================
 * Step Contents
 * ========================================================= */
.cot-step-content {
	display: none;
	animation: fadeIn 0.4s ease;
}

.cot-step-content.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.cot-step-title {
	font-size: 20px;
	color: #5d005d;
	margin-bottom: 16px;
	font-weight: 700;
}

html.dark .cot-step-title {
	color: #da5398;
}

/* =========================================================
 * Options Grid (Radio Cards) — Services
 * ========================================================= */
.cot-options-grid {
	display: grid;
	gap: 14px;
	margin-bottom: 16px;
}

.cot-options-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cot-options-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Grilla especial para servicios: 3×2 desktop, 2×3 mobile */
.cot-services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 16px;
}

.cot-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}
@media (max-width: 767.98px) {
	.cot-grid-2 {
		grid-template-columns: 1fr;
	}
}

.cot-option-card {
	position: relative;
	display: block;
	cursor: pointer;
}

.cot-option-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.cot-option-content {
	border: 2px solid #e9ecef;
	border-radius: 14px;
	padding: 16px 12px;
	height: 100%;
	transition: all 0.2s ease;
	background: #fff;
	text-align: center;
}

html.dark .cot-option-content {
	background: #2d2d2d;
	border-color: #444;
}

.cot-option-card:hover .cot-option-content {
	border-color: #da5398;
	background: #fdf5f9;
}

html.dark .cot-option-card:hover .cot-option-content {
	background: rgba(218, 83, 152, 0.05);
	border-color: #da5398;
}

.cot-option-card input:checked + .cot-option-content {
	border-color: #5d005d;
	background: #faf5fc;
	box-shadow: 0 4px 15px rgba(93, 0, 93, 0.1);
}

html.dark .cot-option-card input:checked + .cot-option-content {
	background: rgba(93, 0, 93, 0.2);
	border-color: #da5398;
}

.cot-option-icon {
	font-size: 28px;
	margin-bottom: 8px;
}

.cot-option-title {
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: #333;
	margin-bottom: 4px;
}

html.dark .cot-option-title {
	color: #fff;
}

.cot-option-desc {
	font-size: 12px;
	color: #6c757d;
	line-height: 1.4;
}

html.dark .cot-option-desc {
	color: #adb5bd;
}

/* =========================================================
 * Form Fields
 * ========================================================= */
.cot-field-group {
	margin-bottom: 16px;
}

.cot-label {
	display: block;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	margin-bottom: 6px;
	color: #495057;
	font-size: 14px;
}

html.dark .cot-label {
	color: #e9ecef;
}

.cot-input, .cot-textarea, .cot-select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ced4da;
	border-radius: 10px;
	font-family: "Dosis", sans-serif;
	font-size: 15px;
	color: #495057;
	background: #fff;
	transition: all 0.2s ease;
}

.cot-currency-select {
	font-size: 16px;
	padding: 12px 16px;
	max-width: 400px;
}

html.dark .cot-input, html.dark .cot-textarea, html.dark .cot-select {
	background: #2d2d2d;
	border-color: #444;
	color: #e9ecef;
}

.cot-input:focus, .cot-textarea:focus, .cot-select:focus {
	outline: none;
	border-color: #da5398;
	box-shadow: 0 0 0 3px rgba(218, 83, 152, 0.2);
}

.cot-input-sm {
	padding: 6px 10px;
	border: 1px solid #ced4da;
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
	color: #333;
}

html.dark .cot-input-sm {
	background: #2d2d2d;
	border-color: #444;
	color: #fff;
}

.cot-hint {
	font-size: 12px;
	color: #6c757d;
	margin-top: 6px;
}

html.dark .cot-hint {
	color: #adb5bd;
}

.checkbox-group .cot-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	color: #495057;
}

html.dark .checkbox-group .cot-checkbox-label {
	color: #adb5bd;
}

.checkbox-group input[type="checkbox"] {
	margin-top: 4px;
	width: 16px;
	height: 16px;
}

/* =========================================================
 * Upload Zone
 * ========================================================= */
.cot-upload-zone {
	border: 2px dashed #ced4da;
	border-radius: 14px;
	padding: 22px 16px;
	text-align: center;
	background: #f8f9fa;
	cursor: pointer;
	transition: all 0.2s ease;
}

html.dark .cot-upload-zone {
	background: #222;
	border-color: #444;
}

.cot-upload-zone:hover, .cot-upload-zone.dragover {
	border-color: #1da1f2;
	background: #f1f8ff;
}

html.dark .cot-upload-zone:hover, html.dark .cot-upload-zone.dragover {
	background: rgba(29, 161, 242, 0.1);
	border-color: #1da1f2;
}

.cot-upload-icon {
	font-size: 28px;
	margin-bottom: 8px;
	color: #adb5bd;
}

.cot-upload-text {
	color: #495057;
	font-weight: 500;
}

html.dark .cot-upload-text {
	color: #ced4da;
}

.cot-file-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cot-file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: #e9ecef;
	border-radius: 8px;
	font-size: 13px;
}

html.dark .cot-file-item {
	background: #2d2d2d;
	color: #e9ecef;
}

.cot-file-remove {
	cursor: pointer;
	color: #dc3545;
	font-weight: bold;
}

/* =========================================================
 * Buttons
 * ========================================================= */
.cot-nav-buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 16px;
	border-top: 1px solid #e9ecef;
}

html.dark .cot-nav-buttons {
	border-top-color: #2d2d2d;
}

.cot-btn {
	padding: 11px 22px;
	border-radius: 50px;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	border: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
}

.cot-btn-primary {
	background: linear-gradient(135deg, #5d005d 0%, #da5398 100%);
	color: #fff !important;
	box-shadow: 0 4px 15px rgba(93, 0, 93, 0.2);
}

.cot-btn-primary:hover {
	background: linear-gradient(135deg, #da5398 0%, #5d005d 100%);
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(93, 0, 93, 0.3);
}

.cot-btn-primary:disabled {
	background: #ccc;
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}

html.dark .cot-btn-primary:disabled {
	background: #444;
	color: #888;
}

.cot-btn-outline {
	background: transparent;
	border: 1px solid #ced4da;
	color: #495057;
}

html.dark .cot-btn-outline {
	border-color: #444;
	color: #ced4da;
}

.cot-btn-outline:hover {
	background: #e9ecef;
}

html.dark .cot-btn-outline:hover {
	background: #2d2d2d;
}

.cot-btn-whatsapp {
	background: #25D366;
	color: #fff;
}
.cot-btn-whatsapp:hover {
	background: #128C7E;
	color: #fff;
}

/* =========================================================
 * Summary Panel & Results
 * ========================================================= */
.cot-summary-panel {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.08);
	padding: 24px;
	border: 1px solid rgba(218, 83, 152, 0.1);
}

html.dark .cot-summary-panel {
	background: #1e1e1e;
	box-shadow: 0 10px 40px rgba(0,0,0,0.4);
	border-color: rgba(255,255,255,0.05);
}

.cot-summary-title {
	font-size: 18px;
	color: #5d005d;
	margin-bottom: 16px;
	font-weight: 700;
	text-align: center;
}

html.dark .cot-summary-title {
	color: #da5398;
}

.cot-result-header {
	background: linear-gradient(135deg, #fdf5f9 0%, #faf5fc 100%);
	border-radius: 14px;
	padding: 16px;
	border: 1px solid rgba(218, 83, 152, 0.15);
}

html.dark .cot-result-header {
	background: linear-gradient(135deg, #2a1b2a 0%, #1a1622 100%);
	border-color: rgba(218, 83, 152, 0.2);
}

.cot-result-label {
	display: block;
	font-size: 13px;
	color: #6c757d;
	font-weight: 600;
	margin-bottom: 6px;
}

html.dark .cot-result-label {
	color: #adb5bd;
}

.cot-result-price {
	font-size: 34px;
	font-family: "Montserrat", sans-serif;
	font-weight: 800;
	color: #5d005d;
	line-height: 1;
	margin-bottom: 6px;
}

html.dark .cot-result-price {
	color: #da5398;
}

.cot-result-usd-note {
	font-size: 13px;
	color: #6c757d;
}

html.dark .cot-result-usd-note {
	color: #adb5bd;
}

.cot-summary-subtitle {
	font-size: 15px;
	color: #333;
	margin: 16px 0 8px;
	font-weight: 700;
}

html.dark .cot-summary-subtitle {
	color: #fff;
}

.cot-breakdown-table {
	width: 100%;
	font-size: 14px;
	border-collapse: collapse;
}

.cot-breakdown-table td {
	padding: 6px 0;
	border-bottom: 1px dashed #e9ecef;
}

html.dark .cot-breakdown-table td {
	border-bottom-color: #2d2d2d;
}

.cot-breakdown-table tr:last-child td {
	border-bottom: none;
}

.cot-breakdown-table .label {
	color: #6c757d;
	font-weight: 600;
}

html.dark .cot-breakdown-table .label {
	color: #adb5bd;
}

.cot-breakdown-table .value {
	color: #333;
	text-align: right;
	font-weight: 500;
}

html.dark .cot-breakdown-table .value {
	color: #fff;
}

/* =========================================================
 * Nota valor neto
 * ========================================================= */
.cot-net-note {
	font-size: 12px;
	color: #6c757d;
	text-align: center;
	margin-top: 10px;
	line-height: 1.4;
	font-style: italic;
}

html.dark .cot-net-note {
	color: #adb5bd;
}

/* =========================================================
 * Dark mode — Componentes adicionales
 * ========================================================= */
html.dark .cot-section-subtitle {
	color: #da5398;
}

html.dark .cot-result-card-mobile {
	background: #1e1e1e;
	border: 1px solid rgba(255,255,255,0.08);
}

html.dark .cot-lead-form .row {
	color: #e9ecef;
}

html.dark .cot-success-screen {
	background: transparent;
}

html.dark .cot-success-title {
	color: #28a745;
}

/* =========================================================
 * Alerts & Notes
 * ========================================================= */
.cot-alert {
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 13px;
	margin-bottom: 12px;
	line-height: 1.5;
}

.cot-alert-info {
	background: #e3f2fd;
	color: #0c5460;
	border: 1px solid #b8daff;
}

html.dark .cot-alert-info {
	background: rgba(29, 161, 242, 0.1);
	color: #63b3ed;
	border-color: rgba(29, 161, 242, 0.2);
}

.cot-alert-warning {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeeba;
}

html.dark .cot-alert-warning {
	background: rgba(248, 204, 7, 0.1);
	color: #fbd38d;
	border-color: rgba(248, 204, 7, 0.2);
}

.cot-alert-danger {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

html.dark .cot-alert-danger {
	background: rgba(220, 53, 69, 0.1);
	color: #feb2b2;
	border-color: rgba(220, 53, 69, 0.2);
}

/* =========================================================
 * Success Screen
 * ========================================================= */
.cot-success-screen {
	text-align: center;
	padding: 30px 20px;
}

.cot-success-icon {
	width: 70px;
	height: 70px;
	background: #28a745;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	margin: 0 auto 16px;
	animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
	0% { transform: scale(0); }
	100% { transform: scale(1); }
}

.cot-success-title {
	font-size: 24px;
	color: #28a745;
	margin-bottom: 12px;
}

.cot-success-desc {
	font-size: 15px;
	color: #6c757d;
	max-width: 500px;
	margin: 0 auto 10px;
}

html.dark .cot-success-desc {
	color: #adb5bd;
}

.cot-success-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* =========================================================
 * Timezone hint
 * ========================================================= */
.cot-tz-hint {
	font-size: 12px;
	color: #da5398;
	margin-top: 4px;
	font-style: italic;
}

/* =========================================================
 * Responsive
 * ========================================================= */
@media (max-width: 1199.98px) {
	.cot-wizard {
		flex-direction: column;
	}
	.cot-sidebar {
		width: 100%;
	}
	.cot-summary-panel.sticky-top {
		position: static;
	}
}

@media (max-width: 767.98px) {
	.cot-hero {
		padding: 8px 0;
	}
	.cot-hero .hero-h1 {
		font-size: 18px !important;
	}
	.cot-hero .hero-subtitle {
		font-size: 13px !important;
	}
	.cot-app-section {
		padding: 24px 0 20px;
		background-image: none !important;
	}
	.cot-main-panel {
		padding: 12px 10px;
		border-radius: 12px;
	}

	/* Servicios: 2 columnas en mobile */
	.cot-services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.cot-options-grid.cols-3 {
		grid-template-columns: 1fr;
	}
	.cot-options-grid.cols-2 {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.cot-option-icon { font-size: 22px; margin-bottom: 4px; }
	.cot-option-title { font-size: 13px; }
	.cot-option-desc { font-size: 11px; }
	.cot-option-content { padding: 10px 8px; }
	
	.cot-stepper {
		margin-bottom: 16px;
	}
	
	.cot-step-label {
		display: none;
	}
	
	.cot-step-circle {
		width: 28px;
		height: 28px;
		font-size: 13px;
	}
	
	.cot-step-line {
		top: 0;
		margin: 0 4px;
	}

	.cot-step-title {
		font-size: 16px;
		margin-bottom: 12px;
	}

	.cot-field-group {
		margin-bottom: 12px;
	}

	.cot-nav-buttons {
		flex-direction: column-reverse;
		gap: 10px;
		padding-top: 12px;
	}

	.cot-nav-buttons .cot-btn {
		width: 100%;
		justify-content: center;
	}

	.cot-summary-panel {
		padding: 16px;
	}

	.cot-result-price {
		font-size: 28px;
	}

	.cot-upload-zone {
		padding: 16px 12px;
	}
}
